@@ -334,19 +334,20 @@ void print_output(PCM * m,
334334
335335 cout << setNextColor () << " N/A\n " ;
336336 cout << resetColor ();
337- cout << setNextColor () <<" \n Instructions retired: " << unit_format (getInstructionsRetired (sstate1, sstate2)) << " ;"
338- << setNextColor () <<" Active cycles: " << unit_format (getCycles (sstate1, sstate2)) << " ;"
339- << setNextColor () <<" Time (TSC): " << unit_format (getInvariantTSC (cstates1[0 ], cstates2[0 ])) << " ticks ; "
340- << setNextColor () << " C0 (active,non-halted) core residency: " << ( getCoreCStateResidency ( 0 , sstate1, sstate2)* 100 .) << " % \n " ;
341- cout << " \n " ;
337+ cout << setNextColor () << " \n Instructions retired: " << unit_format (getInstructionsRetired (sstate1, sstate2)) << " ;"
338+ << setNextColor () << " Active cycles: " << unit_format (getCycles (sstate1, sstate2)) << " ;"
339+ << setNextColor () << " Time (TSC): " << unit_format (getInvariantTSC (cstates1[0 ], cstates2[0 ])) << " ticks; \n\n " ;
340+
341+ cout << resetColor () << setNextColor () << " Core C-state residencies: " << setNextColor () << " C0 (active,non-halted): " << ( getCoreCStateResidency ( 0 , sstate1, sstate2)* 100 .) << " %; " ;
342342 for (int s = 1 ; s <= PCM::MAX_C_STATE; ++s)
343343 {
344344 if (m->isCoreCStateResidencySupported (s))
345345 {
346- std::cout << setNextColor () << " C" << s << " core residency : " << (getCoreCStateResidency (s, sstate1, sstate2)*100 .) << " %;" ;
346+ std::cout << setNextColor () << " C" << s << " : " << (getCoreCStateResidency (s, sstate1, sstate2)*100 .) << " %;" ;
347347 }
348348 }
349349 cout << " \n " ;
350+ cout << resetColor () << setNextColor () << " Package C-state residencies: " ;
350351 std::vector<StackedBarItem> CoreCStateStackedBar, PackageCStateStackedBar;
351352 for (int s = 0 ; s <= PCM::MAX_C_STATE; ++s)
352353 {
@@ -359,7 +360,7 @@ void print_output(PCM * m,
359360 }
360361 if (m->isPackageCStateResidencySupported (s))
361362 {
362- std::cout << setNextColor () << " C" << s << " package residency : " << (getPackageCStateResidency (s, sstate1, sstate2)*100 .) << " %;" ;
363+ std::cout << setNextColor () << " C" << s << " : " << (getPackageCStateResidency (s, sstate1, sstate2)*100 .) << " %;" ;
363364 PackageCStateStackedBar.push_back (StackedBarItem (getPackageCStateResidency (s, sstate1, sstate2), " " , fill));
364365 }
365366 }
0 commit comments