@@ -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