mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +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::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();
|
||||
|
Loading…
Reference in New Issue
Block a user