mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Add no-op callstack cleanup procedure.
This commit is contained in:
parent
6d6b7c0989
commit
532c5a240c
@ -221,6 +221,10 @@ void InitCallstack()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void EndCallstack()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
const char* DecodeCallstackPtrFast( uint64_t ptr )
|
const char* DecodeCallstackPtrFast( uint64_t ptr )
|
||||||
{
|
{
|
||||||
static char ret[MaxNameSize];
|
static char ret[MaxNameSize];
|
||||||
@ -661,6 +665,10 @@ void InitCallstack()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void EndCallstack()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
static int FastCallstackDataCb( void* data, uintptr_t pc, uintptr_t lowaddr, const char* fn, int lineno, const char* function )
|
static int FastCallstackDataCb( void* data, uintptr_t pc, uintptr_t lowaddr, const char* fn, int lineno, const char* function )
|
||||||
{
|
{
|
||||||
if( function )
|
if( function )
|
||||||
@ -913,6 +921,10 @@ void InitCallstack()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void EndCallstack()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
const char* DecodeCallstackPtrFast( uint64_t ptr )
|
const char* DecodeCallstackPtrFast( uint64_t ptr )
|
||||||
{
|
{
|
||||||
static char ret[1024];
|
static char ret[1024];
|
||||||
|
@ -51,6 +51,7 @@ CallstackSymbolData DecodeCodeAddress( uint64_t ptr );
|
|||||||
const char* DecodeCallstackPtrFast( uint64_t ptr );
|
const char* DecodeCallstackPtrFast( uint64_t ptr );
|
||||||
CallstackEntryData DecodeCallstackPtr( uint64_t ptr );
|
CallstackEntryData DecodeCallstackPtr( uint64_t ptr );
|
||||||
void InitCallstack();
|
void InitCallstack();
|
||||||
|
void EndCallstack();
|
||||||
const char* GetKernelModulePath( uint64_t addr );
|
const char* GetKernelModulePath( uint64_t addr );
|
||||||
|
|
||||||
#if TRACY_HAS_CALLSTACK == 1
|
#if TRACY_HAS_CALLSTACK == 1
|
||||||
|
@ -1492,6 +1492,10 @@ Profiler::~Profiler()
|
|||||||
s_thread->~Thread();
|
s_thread->~Thread();
|
||||||
tracy_free( s_thread );
|
tracy_free( s_thread );
|
||||||
|
|
||||||
|
#ifdef TRACY_HAS_CALLSTACK
|
||||||
|
EndCallstack();
|
||||||
|
#endif
|
||||||
|
|
||||||
tracy_free( m_lz4Buf );
|
tracy_free( m_lz4Buf );
|
||||||
tracy_free( m_buffer );
|
tracy_free( m_buffer );
|
||||||
LZ4_freeStream( (LZ4_stream_t*)m_stream );
|
LZ4_freeStream( (LZ4_stream_t*)m_stream );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user