Display CPU migrations percentage.

This commit is contained in:
Bartosz Taudul 2019-08-18 14:43:51 +02:00
parent 691fe06bfe
commit ae9cae781a

View File

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