From ae9cae781a11903a9fc1844a0a66b257977eb5e7 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 18 Aug 2019 14:43:51 +0200 Subject: [PATCH] Display CPU migrations percentage. --- server/TracyView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 095252af..75d6d67a 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -10454,6 +10454,8 @@ void View::DrawCpuDataWindow() ImGui::TextUnformatted( RealToString( pid.second.data.runningRegions, true ) ); ImGui::NextColumn(); ImGui::TextUnformatted( RealToString( pid.second.data.migrations, true ) ); + ImGui::SameLine(); + ImGui::TextDisabled( "(%.2f%%)", double( pid.second.data.migrations ) / pid.second.data.runningRegions * 100 ); ImGui::NextColumn(); if( expand ) { @@ -10472,6 +10474,8 @@ void View::DrawCpuDataWindow() ImGui::TextUnformatted( RealToString( tit->second.runningRegions, true ) ); ImGui::NextColumn(); ImGui::TextUnformatted( RealToString( tit->second.migrations, true ) ); + ImGui::SameLine(); + ImGui::TextDisabled( "(%.2f%%)", double( tit->second.migrations ) / tit->second.runningRegions * 100 ); ImGui::NextColumn(); } ImGui::TreePop();