Show appropriate message when there's no memory data collected.

This commit is contained in:
Bartosz Taudul 2018-05-01 17:28:02 +02:00
parent e5934b409a
commit 1512f3584c

View File

@ -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 ),