perf: fix bug in code to print out metrics
We don't normally hit the code in scripting.js to print metrics because shell-perf-tool bypasses it, but there was a left-over in the code that no longer works. Also add in the units to the output. https://bugzilla.gnome.org/show_bug.cgi?id=732349
This commit is contained in:
parent
910c95fa9b
commit
e375e1a857
@ -306,8 +306,8 @@ function _collect(scriptModule, outputFile) {
|
||||
print ('------------------------------------------------------------');
|
||||
for (let i = 0; i < metrics.length; i++) {
|
||||
let metric = metrics[i];
|
||||
print ('# ' + scriptModule.METRIC_DESCRIPTIONS[metric]);
|
||||
print (metric + ': ' + scriptModule.METRICS[metric]);
|
||||
print ('# ' + scriptModule.METRICS[metric].description);
|
||||
print (metric + ': ' + scriptModule.METRICS[metric].value + scriptModule.METRICS[metric].units);
|
||||
}
|
||||
print ('------------------------------------------------------------');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user