mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +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;
|
if( !fn ) return 1;
|
||||||
|
|
||||||
const auto fnsz = strlen( fn );
|
const auto fnsz = strlen( fn );
|
||||||
if( fnsz >= 19 ) // minimum length in s_tracySkipSubframes
|
if( fnsz >= s_tracySkipSubframesMinLen )
|
||||||
{
|
{
|
||||||
auto ptr = s_tracySkipSubframes;
|
auto ptr = s_tracySkipSubframes;
|
||||||
do
|
do
|
||||||
|
@ -15,6 +15,8 @@ struct StringMatch
|
|||||||
extern const char** s_tracyStackFrames;
|
extern const char** s_tracyStackFrames;
|
||||||
extern const StringMatch* s_tracySkipSubframes;
|
extern const StringMatch* s_tracySkipSubframes;
|
||||||
|
|
||||||
|
static constexpr int s_tracySkipSubframesMinLen = 19;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -6002,7 +6002,7 @@ void Worker::ProcessCallstackFrame( const QueueCallstackFrame& ev, bool querySym
|
|||||||
{
|
{
|
||||||
auto fstr = GetString( file );
|
auto fstr = GetString( file );
|
||||||
auto flen = strlen( fstr );
|
auto flen = strlen( fstr );
|
||||||
if( flen >= 19 ) // minimum length in s_tracySkipSubframes
|
if( flen >= s_tracySkipSubframesMinLen )
|
||||||
{
|
{
|
||||||
auto ptr = s_tracySkipSubframes;
|
auto ptr = s_tracySkipSubframes;
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user