mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Use fast callstack frame decoding to cut callstack.
This commit is contained in:
parent
cb62b63fe2
commit
1bbf296351
@ -1884,13 +1884,8 @@ void Profiler::CutCallstack( void* callstack, const char* skipBefore )
|
|||||||
uintptr_t i;
|
uintptr_t i;
|
||||||
for( i=0; i<sz; i++ )
|
for( i=0; i<sz; i++ )
|
||||||
{
|
{
|
||||||
auto frameData = DecodeCallstackPtr( uint64_t( data[i] ) );
|
auto name = DecodeCallstackPtrFast( uint64_t( data[i] ) );
|
||||||
const bool found = strcmp( frameData.data[0].name, skipBefore ) == 0;
|
const bool found = strcmp( name, skipBefore ) == 0;
|
||||||
for( uint8_t j=0; j<frameData.size; j++ )
|
|
||||||
{
|
|
||||||
tracy_free( (void*)frameData.data[j].name );
|
|
||||||
tracy_free( (void*)frameData.data[j].file );
|
|
||||||
}
|
|
||||||
if( found )
|
if( found )
|
||||||
{
|
{
|
||||||
i++;
|
i++;
|
||||||
|
Loading…
Reference in New Issue
Block a user