mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 20:53:52 +00:00
Fix handling of unknown symbols.
This commit is contained in:
parent
fd027c65e7
commit
5fd5091efd
@ -11537,7 +11537,7 @@ void View::DrawStatistics()
|
|||||||
bool expand = false;
|
bool expand = false;
|
||||||
if( !m_statSeparateInlines )
|
if( !m_statSeparateInlines )
|
||||||
{
|
{
|
||||||
if( v.count > 0 )
|
if( v.count > 0 && v.symAddr != 0 )
|
||||||
{
|
{
|
||||||
ImGui::PushID( v.symAddr );
|
ImGui::PushID( v.symAddr );
|
||||||
expand = ImGui::TreeNodeEx( "", v.count == 0 ? ImGuiTreeNodeFlags_Leaf : 0 );
|
expand = ImGui::TreeNodeEx( "", v.count == 0 ? ImGuiTreeNodeFlags_Leaf : 0 );
|
||||||
@ -11569,7 +11569,7 @@ void View::DrawStatistics()
|
|||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextDisabled( "(%s)", parentName );
|
ImGui::TextDisabled( "(%s)", parentName );
|
||||||
}
|
}
|
||||||
if( !m_statSeparateInlines && v.count > 0 )
|
if( !m_statSeparateInlines && v.count > 0 && v.symAddr != 0 )
|
||||||
{
|
{
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextDisabled( "(+%s)", RealToString( v.count ) );
|
ImGui::TextDisabled( "(+%s)", RealToString( v.count ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user