Callstack: in-process stack capture and thread sampling #5

Merged
ilusha merged 2 commits from Callstack into master 2026-10-27 23:10:19 +03:00

2 commits

Author SHA1 Message Date
e05fb9c714 Callstack: build CallStackCapture on StackTrace
Some checks failed
Windows / build (pull_request) Has been cancelled
CMake on a single platform / build (pull_request) Has been cancelled
CMake / build (pull_request) Has been cancelled
CallStackCapture now delegates capture and symbolization to StackTrace instead
of execinfo plus an addr2line subprocess. The same implementation is enabled on
Linux and Android. Reports contain the module, module-relative offset and
demangled function; dladdr supplies no source line.
2026-10-27 23:14:24 +03:00
a4cd5661f8 Callstack: add stack capture and thread sampling
StackTrace captures the calling thread with _Unwind_Backtrace, symbolizes
addresses with dladdr and __cxa_demangle, and samples other threads through a
real-time signal. Each target writes into its own slot; the sampler also reads
/proc task name, scheduler state and wait channel, and keeps unanswered threads
in the result. Windows captures stacks and module offsets but reports that
remote sampling is unsupported. Debugger detection is exposed separately.
2026-10-27 23:14:24 +03:00