Skip to content

Commit 254be27

Browse files
committed
add colors (part 2)
1 parent a902754 commit 254be27

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pcm.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ void print_output(PCM * m,
363363
cout << " N/A\n";
364364
cout << "\n Instructions retired: " << unit_format(getInstructionsRetired(sstate1, sstate2)) << " ; Active cycles: " << unit_format(getCycles(sstate1, sstate2)) << " ; Time (TSC): " << unit_format(getInvariantTSC(cstates1[0], cstates2[0])) << "ticks ; C0 (active,non-halted) core residency: " << (getCoreCStateResidency(0, sstate1, sstate2)*100.) << " %\n";
365365
cout << "\n";
366+
cout << setColor(ASCII_GREEN);
366367
for (int s = 1; s <= PCM::MAX_C_STATE; ++s)
367368
{
368369
if (m->isCoreCStateResidencySupported(s))
@@ -392,6 +393,8 @@ void print_output(PCM * m,
392393
drawStackedBar(" Core C-state distribution", CoreCStateStackedBar, 80);
393394
drawStackedBar(" Package C-state distribution", PackageCStateStackedBar, 80);
394395

396+
cout << resetColor();
397+
395398
if (m->getNumCores() == m->getNumOnlineCores() && false)
396399
{
397400
cout << "\n PHYSICAL CORE IPC : " << getCoreIPC(sstate1, sstate2) << " => corresponds to " << 100. * (getCoreIPC(sstate1, sstate2) / double(m->getMaxIPC())) << " % utilization for cores in active state";

0 commit comments

Comments
 (0)