mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 09:14:36 +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 ) );
|
TextFocused( "Lifetime:", TimeToString( lifetime ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextDisabled( "(%.2f%%)", lifetime / double( traceLen ) * 100 );
|
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();
|
ImGui::Separator();
|
||||||
|
Loading…
Reference in New Issue
Block a user