Skip to content

Commit 186b5c2

Browse files
committed
pcm: make metric version 2 default
1 parent 198e5cb commit 186b5c2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/pcm.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ void print_help(const string & prog_name)
9393
<< " to a file, in case filename is provided\n"
9494
<< " the format used is documented here: https://www.intel.com/content/www/us/en/developer/articles/technical/intel-pcm-column-names-decoder-ring.html\n";
9595
cout << " -i[=number] | /i[=number] => allow to determine number of iterations\n";
96-
cout << " -m=integer | /m=integer => metrics version (default = 1). If version is 2\n"
97-
<< " then a few alternative metrics are shown (UTIL=C0 residency for cores, CFREQ=core frequency in GHz).\n";
96+
cout << " -m=integer | /m=integer => metrics version (default = 2)\n";
9897
print_enforce_flush_option_help();
9998
print_help_force_rtm_abort_mode(37);
10099
cout << " Examples:\n";
@@ -1292,7 +1291,7 @@ int mainThrows(int argc, char * argv[])
12921291
bool reset_pmu = false;
12931292
bool disable_JKT_workaround = false; // as per http://software.intel.com/en-us/articles/performance-impact-when-sampling-certain-llc-events-on-snb-ep-with-vtune
12941293
bool enforceFlush = false;
1295-
int metricVersion = 1;
1294+
int metricVersion = 2;
12961295

12971296
parsePID(argc, argv, pid);
12981297

@@ -1391,7 +1390,7 @@ int mainThrows(int argc, char * argv[])
13911390
}
13921391
if (metricVersion == 0)
13931392
{
1394-
metricVersion = 1;
1393+
metricVersion = 2;
13951394
}
13961395
continue;
13971396
}

0 commit comments

Comments
 (0)