diff --git a/client/TracyCallstack.cpp b/client/TracyCallstack.cpp index b1509a71..5a8b152f 100644 --- a/client/TracyCallstack.cpp +++ b/client/TracyCallstack.cpp @@ -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 diff --git a/common/TracyStackFrames.hpp b/common/TracyStackFrames.hpp index ae8a8314..6229883d 100644 --- a/common/TracyStackFrames.hpp +++ b/common/TracyStackFrames.hpp @@ -15,6 +15,8 @@ struct StringMatch extern const char** s_tracyStackFrames; extern const StringMatch* s_tracySkipSubframes; +static constexpr int s_tracySkipSubframesMinLen = 19; + } #endif diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 0c995715..befbe65b 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -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