Skip to content

Commit 0b0b9ab

Browse files
committed
Changed metric names for throttling to correct naming scheme
1 parent 44ef0ac commit 0b0b9ab

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

frontend/js/helpers/config.js.example

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,15 @@ METRIC_MAPPINGS = {
306306
"source": "sysfs",
307307
"explanation": "CPU Frequency per core as reported by sysfs"
308308
},
309-
"cpu_throttling_msr_component": {
310-
"clean_name": "CPU Throttling",
309+
"cpu_throttling_thermal_msr_component": {
310+
"clean_name": "CPU Throttling (Thermal)",
311311
"source": "msr",
312-
"explanation": "Indicator for CPU throttling due to thermal or power capping"
312+
"explanation": "Indicator for CPU throttling due to thermal capping"
313+
},
314+
"cpu_throttling_power_msr_component": {
315+
"clean_name": "CPU Throttling (Power)",
316+
"source": "msr",
317+
"explanation": "Indicator for CPU throttling due to power capping"
313318
},
314319
"ane_power_powermetrics_component": {
315320
"clean_name": "ANE Power",

lib/phase_stats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ def build_and_store_phase_stats(run_id, sci=None):
188188
'energy_impact_powermetrics_vm',
189189
'disk_used_statvfs_system',
190190
'cpu_frequency_sysfs_core',
191-
'power_limit_throttling_status',
192-
'thermal_throttling_status',
191+
'cpu_throttling_thermal_msr_component',
192+
'cpu_throttling_power_msr_component',
193193
):
194194
csv_buffer.write(generate_csv_line(run_id, metric, detail_name, f"{idx:03}_{phase['name']}", avg_value, 'MEAN', max_value, min_value, sampling_rate_avg, sampling_rate_max, sampling_rate_95p, unit))
195195

metric_providers/cpu/throttling/msr/component/provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def __init__(self, sampling_rate, skip_check=False):
1212
current_dir=os.path.dirname(os.path.abspath(__file__)),
1313
skip_check=skip_check,
1414
)
15-
self._sub_metrics_name = ['thermal_throttling_status', 'power_limit_throttling_status']
15+
self._sub_metrics_name = ['cpu_throttling_thermal_msr_component', 'cpu_throttling_power_msr_component']
1616

1717

1818
def _parse_metrics(self, df):

0 commit comments

Comments
 (0)