diff options
author | Rick Reed <[email protected]> | 2013-02-13 08:48:18 -0800 |
---|---|---|
committer | Anthony Ramine <[email protected]> | 2014-03-09 11:10:25 +0100 |
commit | 345af4a0c8d68b9369c3556fa6d911854c123d3f (patch) | |
tree | 906c0d6e8a8be67c6188c4723f8ded41d0f7fdc8 | |
parent | e2c11e89563f0c11794c91193b29bce00ca9c740 (diff) | |
download | otp-345af4a0c8d68b9369c3556fa6d911854c123d3f.tar.gz otp-345af4a0c8d68b9369c3556fa6d911854c123d3f.tar.bz2 otp-345af4a0c8d68b9369c3556fa6d911854c123d3f.zip |
Add run queue index to process dump info
-rw-r--r-- | erts/doc/src/crash_dump.xml | 3 | ||||
-rw-r--r-- | erts/emulator/beam/break.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/erts/doc/src/crash_dump.xml b/erts/doc/src/crash_dump.xml index c59741f250..885b7c3bb4 100644 --- a/erts/doc/src/crash_dump.xml +++ b/erts/doc/src/crash_dump.xml @@ -246,6 +246,9 @@ <tag><em>Last scheduled in for | Current call</em></tag> <item>The current function of the process. These fields will not always exist.</item> + <tag><em>Run queue</em></tag> + <item>The identifier of the scheduler run queue in which the process is + running.</item> <tag><em>Spawned by</em></tag> <item>The parent of the process, i.e. the process which executed <c><![CDATA[spawn]]></c> or <c><![CDATA[spawn_link]]></c>.</item> diff --git a/erts/emulator/beam/break.c b/erts/emulator/beam/break.c index 7d4f52ee23..08265b590d 100644 --- a/erts/emulator/beam/break.c +++ b/erts/emulator/beam/break.c @@ -256,6 +256,7 @@ print_process_info(int to, void *to_arg, Process *p) p->current[1], p->current[2]); } + erts_print(to, to_arg, "Run queue: %d\n", erts_get_runq_proc(p)->ix); erts_print(to, to_arg, "Spawned by: %T\n", p->parent); approx_started = (time_t) p->approx_started; |