mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Specify minimum length of subframe skip in one place.
This commit is contained in:
parent
e1c3babf43
commit
9c2ea8a71f
@ -529,7 +529,7 @@ static int CodeDataCb( void* data, uintptr_t pc, uintptr_t lowaddr, const char*
|
||||
if( !fn ) return 1;
|
||||
|
||||
const auto fnsz = strlen( fn );
|
||||
if( fnsz >= 19 ) // minimum length in s_tracySkipSubframes
|
||||
if( fnsz >= s_tracySkipSubframesMinLen )
|
||||
{
|
||||
auto ptr = s_tracySkipSubframes;
|
||||
do
|
||||
|
@ -15,6 +15,8 @@ struct StringMatch
|
||||
extern const char** s_tracyStackFrames;
|
||||
extern const StringMatch* s_tracySkipSubframes;
|
||||
|
||||
static constexpr int s_tracySkipSubframesMinLen = 19;
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -6002,7 +6002,7 @@ void Worker::ProcessCallstackFrame( const QueueCallstackFrame& ev, bool querySym
|
||||
{
|
||||
auto fstr = GetString( file );
|
||||
auto flen = strlen( fstr );
|
||||
if( flen >= 19 ) // minimum length in s_tracySkipSubframes
|
||||
if( flen >= s_tracySkipSubframesMinLen )
|
||||
{
|
||||
auto ptr = s_tracySkipSubframes;
|
||||
do
|
||||
|
Loading…
Reference in New Issue
Block a user