mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 09:14:36 +00:00
Add waiting dots to memory data in zone info window.
This commit is contained in:
parent
d547700e50
commit
6e4bc7d9c5
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user