mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Show appropriate message when there's no memory data collected.
This commit is contained in:
parent
e5934b409a
commit
1512f3584c
@ -4666,6 +4666,13 @@ void View::DrawMemory()
|
||||
|
||||
ImGui::Begin( "Memory", &m_memInfo.show );
|
||||
|
||||
if( mem.data.empty() )
|
||||
{
|
||||
ImGui::TextWrapped( "No memory data collected." );
|
||||
ImGui::End();
|
||||
return;
|
||||
}
|
||||
|
||||
ImGui::Text( "Total allocations: %-15s Active allocations: %-15s Memory usage: %-15s Memory span: %s",
|
||||
RealToString( mem.data.size(), true ),
|
||||
RealToString( mem.active.size(), true ),
|
||||
|
Loading…
Reference in New Issue
Block a user