mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-06-22 08:15:54 +01:00
report_power_stats: number of entries returned always matches number of reporters
Previously, only reports that were generated were returned. With this commit, there will be an entry for each active reporter in the returned list. If a reporter did not produce a valid report, the entry will be None. This ensures consistent output, even if a run time issue causes a reporter not to produce a report (e.g. if cpufreq events were not enabled).
This commit is contained in:
wlauto
@ -644,8 +644,7 @@ def report_power_stats(trace_file, idle_state_names, core_names, core_clusters,
|
||||
reports = []
|
||||
for reporter in reporters:
|
||||
report = reporter.report()
|
||||
if report:
|
||||
reports.append(report)
|
||||
reports.append(report)
|
||||
return reports
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user