MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / DbgHelpInit

Function DbgHelpInit

Source/ThirdParty/tracy/client/TracyCallstack.cpp:318–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318void DbgHelpInit()
319{
320 if( s_shouldResolveSymbolsOffline ) return;
321
322 _SymAddrIncludeInlineTrace = (t_SymAddrIncludeInlineTrace)GetProcAddress(GetModuleHandleA("dbghelp.dll"), "SymAddrIncludeInlineTrace");
323 _SymQueryInlineTrace = (t_SymQueryInlineTrace)GetProcAddress(GetModuleHandleA("dbghelp.dll"), "SymQueryInlineTrace");
324 _SymFromInlineContext = (t_SymFromInlineContext)GetProcAddress(GetModuleHandleA("dbghelp.dll"), "SymFromInlineContext");
325 _SymGetLineFromInlineContext = (t_SymGetLineFromInlineContext)GetProcAddress(GetModuleHandleA("dbghelp.dll"), "SymGetLineFromInlineContext");
326
327#ifdef TRACY_DBGHELP_LOCK
328 DBGHELP_INIT;
329 DBGHELP_LOCK;
330#endif
331
332 SymInitialize( GetCurrentProcess(), nullptr, true );
333 SymSetOptions( SYMOPT_LOAD_LINES );
334
335#ifdef TRACY_DBGHELP_LOCK
336 DBGHELP_UNLOCK;
337#endif
338}
339
340DWORD64 DbgHelpLoadSymbolsForModule( const char* imageName, uint64_t baseOfDll, uint32_t bllSize )
341{

Callers 1

InitCallstackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected