diff options
Diffstat (limited to 'runtime/src/thread_stacks.h')
| -rw-r--r-- | runtime/src/thread_stacks.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/src/thread_stacks.h b/runtime/src/thread_stacks.h index 523c7b266..1edc1b350 100644 --- a/runtime/src/thread_stacks.h +++ b/runtime/src/thread_stacks.h | |||
| @@ -35,4 +35,8 @@ bool parse_stack_times(std::string_view text, std::vector<unsigned>& seconds); | |||
| 35 | // sampler before unmapping the title image. | 35 | // sampler before unmapping the title image. |
| 36 | std::jthread start_thread_stacks(); | 36 | std::jthread start_thread_stacks(); |
| 37 | 37 | ||
| 38 | // The call chain of thread `tid` now, or of every other thread when `tid` is 0, printed as LEONIDA_STACKS does under | ||
| 39 | // the tag `why`. One call at a time; the device-loss diagnostics call it (vulkan_device_fault.h thread_stack_hook). | ||
| 40 | void print_thread_stacks_now(std::uint32_t tid, const char* why) noexcept; | ||
| 41 | |||
| 38 | } // namespace rt | 42 | } // namespace rt |