mirror of
https://github.com/wolfpld/tracy
synced 2025-05-11 21:53:55 +00:00
Make it easier to add new matches against tracy own stack frames.
This commit is contained in:
parent
104415ced8
commit
7aa24864bf
@ -6507,6 +6507,15 @@ void View::DrawStatistics()
|
|||||||
ImGui::End();
|
ImGui::End();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const char* s_tracyStackFrames[] = {
|
||||||
|
"tracy::Callstack",
|
||||||
|
"tracy::Profiler::SendCallstack",
|
||||||
|
"tracy::ScopedZone::{ctor}",
|
||||||
|
"tracy::Profiler::SendCallstack(int, unsigned long)",
|
||||||
|
"tracy::ScopedZone::ScopedZone(tracy::SourceLocationData const*, int, bool)",
|
||||||
|
nullptr
|
||||||
|
};
|
||||||
|
|
||||||
void View::DrawCallstackWindow()
|
void View::DrawCallstackWindow()
|
||||||
{
|
{
|
||||||
bool show = true;
|
bool show = true;
|
||||||
@ -6572,14 +6581,18 @@ void View::DrawCallstackWindow()
|
|||||||
|
|
||||||
if( fidx == 0 && f != fsz-1 )
|
if( fidx == 0 && f != fsz-1 )
|
||||||
{
|
{
|
||||||
if( strcmp( txt, "tracy::Callstack" ) == 0 ||
|
auto test = s_tracyStackFrames;
|
||||||
strcmp( txt, "tracy::Profiler::SendCallstack" ) == 0 ||
|
bool match = false;
|
||||||
strcmp( txt, "tracy::ScopedZone::{ctor}" ) == 0 ||
|
do
|
||||||
strcmp( txt, "tracy::Profiler::SendCallstack(int, unsigned long)" ) == 0 ||
|
|
||||||
strcmp( txt, "tracy::ScopedZone::ScopedZone(tracy::SourceLocationData const*, int, bool)" ) == 0 )
|
|
||||||
{
|
{
|
||||||
continue;
|
if( strcmp( txt, *test ) == 0 )
|
||||||
|
{
|
||||||
|
match = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
while( *++test );
|
||||||
|
if( match ) continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
bidx++;
|
bidx++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user