Luna::stack_backtrace

u32 stack_backtrace(Span< opaque_t > frames)

Captures function call stack information of the current thread.

Parameters

  • out frames

    One buffer that receives captured frames. Every frame is represented by one opaque handle in the buffer.

Return value

Returns the number of captured frames written to frames.