Skip to content

Commit febf701

Browse files
committed
pcm: add csv output for system power
Change-Id: I7a8ad160746f1b84562a153f2fb76b30a9aa8277
1 parent 55cf22a commit febf701

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pcm.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,8 @@ void print_csv_header(PCM * m,
766766
print_csv_header_helper(header, 2);
767767
if (m->dramEnergyMetricsAvailable())
768768
print_csv_header_helper(header);
769+
if (m->systemEnergyMetricAvailable())
770+
print_csv_header_helper(header);
769771
if (m->LLCReadMissLatencyMetricsAvailable())
770772
print_csv_header_helper(header);
771773
if (m->uncoreFrequencyMetricAvailable())
@@ -946,6 +948,8 @@ void print_csv_header(PCM * m,
946948
}
947949
if (m->dramEnergyMetricsAvailable())
948950
cout << "DRAM Energy (Joules),";
951+
if (m->systemEnergyMetricAvailable())
952+
cout << "SYSTEM Energy (Joules),";
949953
if (m->LLCReadMissLatencyMetricsAvailable())
950954
cout << "LLCRDMISSLAT (ns),";
951955
if (m->uncoreFrequencyMetricAvailable())
@@ -1200,6 +1204,8 @@ void print_csv(PCM * m,
12001204
cout << getConsumedJoules(0, sstate1, sstate2) << "," << getConsumedJoules(1, sstate1, sstate2) << ",";
12011205
if (m->dramEnergyMetricsAvailable())
12021206
cout << getDRAMConsumedJoules(sstate1, sstate2) << ",";
1207+
if (m->systemEnergyMetricAvailable())
1208+
cout << getSystemConsumedJoules(sstate1, sstate2) << ",";
12031209
if (m->LLCReadMissLatencyMetricsAvailable())
12041210
cout << getLLCReadMissLatency(sstate1, sstate2) << ",";
12051211
if (m->uncoreFrequencyMetricAvailable())

0 commit comments

Comments
 (0)