Skip to content

Commit

Permalink
pcm: add csv output for system power
Browse files Browse the repository at this point in the history
Change-Id: I7a8ad160746f1b84562a153f2fb76b30a9aa8277
  • Loading branch information
rdementi committed Dec 3, 2024
1 parent 55cf22a commit febf701
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pcm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,8 @@ void print_csv_header(PCM * m,
print_csv_header_helper(header, 2);
if (m->dramEnergyMetricsAvailable())
print_csv_header_helper(header);
if (m->systemEnergyMetricAvailable())
print_csv_header_helper(header);
if (m->LLCReadMissLatencyMetricsAvailable())
print_csv_header_helper(header);
if (m->uncoreFrequencyMetricAvailable())
Expand Down Expand Up @@ -946,6 +948,8 @@ void print_csv_header(PCM * m,
}
if (m->dramEnergyMetricsAvailable())
cout << "DRAM Energy (Joules),";
if (m->systemEnergyMetricAvailable())
cout << "SYSTEM Energy (Joules),";
if (m->LLCReadMissLatencyMetricsAvailable())
cout << "LLCRDMISSLAT (ns),";
if (m->uncoreFrequencyMetricAvailable())
Expand Down Expand Up @@ -1200,6 +1204,8 @@ void print_csv(PCM * m,
cout << getConsumedJoules(0, sstate1, sstate2) << "," << getConsumedJoules(1, sstate1, sstate2) << ",";
if (m->dramEnergyMetricsAvailable())
cout << getDRAMConsumedJoules(sstate1, sstate2) << ",";
if (m->systemEnergyMetricAvailable())
cout << getSystemConsumedJoules(sstate1, sstate2) << ",";
if (m->LLCReadMissLatencyMetricsAvailable())
cout << getLLCReadMissLatency(sstate1, sstate2) << ",";
if (m->uncoreFrequencyMetricAvailable())
Expand Down

0 comments on commit febf701

Please sign in to comment.