mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Display zone running time in zone info window.
This commit is contained in:
parent
858c94e12e
commit
1ae540c7a1
@ -4681,6 +4681,22 @@ void View::DrawZoneInfoWindow()
|
|||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextDisabled( "(%.2f%%)", 100.f * selftime / ztime );
|
ImGui::TextDisabled( "(%.2f%%)", 100.f * selftime / ztime );
|
||||||
}
|
}
|
||||||
|
const auto ctx = m_worker.GetContextSwitchData( tid );
|
||||||
|
if( ctx )
|
||||||
|
{
|
||||||
|
int64_t time;
|
||||||
|
uint64_t cnt;
|
||||||
|
if( GetZoneRunningTime( ctx, ev, time, cnt ) )
|
||||||
|
{
|
||||||
|
TextFocused( "Running state time:", TimeToString( time ) );
|
||||||
|
if( ztime != 0 )
|
||||||
|
{
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::TextDisabled( "(%.2f%%)", 100.f * time / ztime );
|
||||||
|
}
|
||||||
|
TextFocused( "Running state regions:", RealToString( cnt, true ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
auto& mem = m_worker.GetMemData();
|
auto& mem = m_worker.GetMemData();
|
||||||
if( !mem.data.empty() )
|
if( !mem.data.empty() )
|
||||||
|
Loading…
Reference in New Issue
Block a user