Implement getCallStackFast/Exact for fast call-stack backtrace.

This commit is contained in:
Бранимир Караџић
2025-09-27 12:51:02 -07:00
parent 59d9249854
commit c8128850f8
9 changed files with 908 additions and 69 deletions

View File

@@ -42,7 +42,7 @@ namespace bx
total += write(&smb, "\n\n", &err);
uintptr_t stack[32];
const uint32_t num = getCallStack(2 /* skip self */ + _skip, BX_COUNTOF(stack), stack);
const uint32_t num = getCallStackExact(2 /* skip self */ + _skip, BX_COUNTOF(stack), stack);
total += writeCallstack(&smb, stack, num, &err);
total += write(&smb, &err,