mirror of
https://github.com/wolfpld/tracy
synced 2025-05-01 21:23:52 +00:00
Display CPU migrations percentage.
This commit is contained in:
parent
691fe06bfe
commit
ae9cae781a
@ -10454,6 +10454,8 @@ void View::DrawCpuDataWindow()
|
|||||||
ImGui::TextUnformatted( RealToString( pid.second.data.runningRegions, true ) );
|
ImGui::TextUnformatted( RealToString( pid.second.data.runningRegions, true ) );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
ImGui::TextUnformatted( RealToString( pid.second.data.migrations, true ) );
|
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();
|
ImGui::NextColumn();
|
||||||
if( expand )
|
if( expand )
|
||||||
{
|
{
|
||||||
@ -10472,6 +10474,8 @@ void View::DrawCpuDataWindow()
|
|||||||
ImGui::TextUnformatted( RealToString( tit->second.runningRegions, true ) );
|
ImGui::TextUnformatted( RealToString( tit->second.runningRegions, true ) );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
ImGui::TextUnformatted( RealToString( tit->second.migrations, true ) );
|
ImGui::TextUnformatted( RealToString( tit->second.migrations, true ) );
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::TextDisabled( "(%.2f%%)", double( tit->second.migrations ) / tit->second.runningRegions * 100 );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
}
|
}
|
||||||
ImGui::TreePop();
|
ImGui::TreePop();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user