Enable tracing incline functions in callstacks.

This commit is contained in:
Bartosz Taudul 2019-01-20 19:33:37 +01:00
parent ddad475c19
commit 49b0a3500d

View File

@ -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