mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Enable tracing incline functions in callstacks.
This commit is contained in:
parent
ddad475c19
commit
49b0a3500d
@ -87,7 +87,7 @@ CallstackEntryData DecodeCallstackPtr( uint64_t ptr )
|
|||||||
|
|
||||||
#elif TRACY_HAS_CALLSTACK >= 2
|
#elif TRACY_HAS_CALLSTACK >= 2
|
||||||
|
|
||||||
enum { MaxCbTrace = 1 };
|
enum { MaxCbTrace = 16 };
|
||||||
|
|
||||||
struct backtrace_state* cb_bts;
|
struct backtrace_state* cb_bts;
|
||||||
int cb_num;
|
int cb_num;
|
||||||
@ -223,8 +223,8 @@ CallstackEntryData DecodeCallstackPtr( uint64_t ptr )
|
|||||||
{
|
{
|
||||||
cb_num = 0;
|
cb_num = 0;
|
||||||
backtrace_pcinfo( cb_bts, ptr, CallstackDataCb, CallstackErrorCb, nullptr );
|
backtrace_pcinfo( cb_bts, ptr, CallstackDataCb, CallstackErrorCb, nullptr );
|
||||||
assert( cb_num == 1 );
|
assert( cb_num > 0 );
|
||||||
return { cb_data, cb_num };
|
return { cb_data, uint8_t( cb_num ) };
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user