mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Display thread running time.
This commit is contained in:
parent
3e01ca3269
commit
fadac0b433
@ -2109,6 +2109,13 @@ void View::DrawZones()
|
||||
TextFocused( "Lifetime:", TimeToString( lifetime ) );
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled( "(%.2f%%)", lifetime / double( traceLen ) * 100 );
|
||||
|
||||
if( ctx )
|
||||
{
|
||||
TextFocused( "Time in running state:", TimeToString( ctx->runningTime ) );
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled( "(%.2f%%)", ctx->runningTime / double( lifetime ) * 100 );
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
|
Loading…
Reference in New Issue
Block a user