Display thread running time.

This commit is contained in:
Bartosz Taudul 2019-08-14 17:12:02 +02:00
parent 3e01ca3269
commit fadac0b433

View File

@ -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();