1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add parent symbol for inlined symbols in sampled statistics.

This commit is contained in:
Bartosz Taudul 2020-03-30 02:50:09 +02:00
parent 17a5faa5e0
commit 6fe5d0575f

View File

@ -11437,6 +11437,7 @@ void View::DrawStatistics()
continue;
}
const char* parentName = nullptr;
if( symlen == 0 )
{
uint32_t offset;
@ -11448,6 +11449,7 @@ void View::DrawStatistics()
{
codeAddr = parentAddr;
symlen = pit->second.size.Val();
parentName = m_worker.GetString( pit->second.name );
}
}
}
@ -11471,6 +11473,11 @@ void View::DrawStatistics()
}
ImGui::PopID();
}
if( parentName )
{
ImGui::SameLine();
ImGui::TextDisabled( "(%s)", parentName );
}
ImGui::NextColumn();
float indentVal = 0.f;
if( m_statBuzzAnim.Match( v.symAddr ) )