mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-21 18:48:23 +00:00
Directly use RtlWalkFrameChain.
RtlCaptureStackBackTrace is just a wrapper for RtlWalkFrameChain.
This commit is contained in:
@@ -15,8 +15,11 @@ namespace tracy
|
||||
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
|
||||
extern "C" t_RtlWalkFrameChain RtlWalkFrameChain = 0;
|
||||
|
||||
void InitCallstack()
|
||||
{
|
||||
RtlWalkFrameChain = (t_RtlWalkFrameChain)GetProcAddress( GetModuleHandle( "ntdll.dll" ), "RtlWalkFrameChain" );
|
||||
SymInitialize( GetCurrentProcess(), nullptr, true );
|
||||
SymSetOptions( SYMOPT_LOAD_LINES );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user