Add waiting dots to memory data in zone info window.

This commit is contained in:
Bartosz Taudul 2019-03-07 00:57:32 +01:00
parent d547700e50
commit 6e4bc7d9c5

View File

@ -4330,10 +4330,17 @@ void View::DrawZoneInfoWindow()
ImGui::TextDisabled( "(%.2f%%)", 100.f * selftime / ztime );
auto& mem = m_worker.GetMemData();
if( mem.plot )
if( !mem.data.empty() )
{
ImGui::Separator();
if( !mem.plot )
{
ImGui::Text( "Please wait, computing data..." );
DrawWaitingDots( s_time );
}
else
{
const auto thread = m_worker.CompressThread( tid );
auto ait = std::lower_bound( mem.data.begin(), mem.data.end(), ev.start, [] ( const auto& l, const auto& r ) { return l.timeAlloc < r; } );
@ -4432,6 +4439,7 @@ void View::DrawZoneInfoWindow()
}
}
}
}
ImGui::Separator();