1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Decode callstack frames using libbacktrace.

This commit is contained in:
Bartosz Taudul
2019-01-20 16:55:59 +01:00
parent 79a5a860a5
commit 9e7714c45a
2 changed files with 115 additions and 143 deletions
+1 -6
View File
@@ -42,11 +42,10 @@ struct CallstackEntry
};
CallstackEntry DecodeCallstackPtr( uint64_t ptr );
void InitCallstack();
#if TRACY_HAS_CALLSTACK == 1
void InitCallstack();
static tracy_force_inline void* Callstack( int depth )
{
assert( depth >= 1 && depth < 63 );
@@ -60,8 +59,6 @@ static tracy_force_inline void* Callstack( int depth )
#elif TRACY_HAS_CALLSTACK == 2
static tracy_force_inline void InitCallstack() {}
struct BacktraceState
{
void** current;
@@ -95,8 +92,6 @@ static tracy_force_inline void* Callstack( int depth )
#elif TRACY_HAS_CALLSTACK == 3
static tracy_force_inline void InitCallstack() {}
static tracy_force_inline void* Callstack( int depth )
{
assert( depth >= 1 );