Index: tracing/tracing/extras/importer/linux_perf/power_parser.html |
diff --git a/tracing/tracing/extras/importer/linux_perf/power_parser.html b/tracing/tracing/extras/importer/linux_perf/power_parser.html |
index e12548f59f5f29e5b2aa6b82aac29344605e56e1..a65e64dc499bb48d50871e464b1ef56b2d16d5e0 100644 |
--- a/tracing/tracing/extras/importer/linux_perf/power_parser.html |
+++ b/tracing/tracing/extras/importer/linux_perf/power_parser.html |
@@ -105,10 +105,12 @@ tr.exportTo('tr.e.importer.linux_perf', function() { |
powerCounter.name + '.' + 'Max Frequency'))); |
} |
powerCounter.series.forEach(function(series) { |
- if (series.name === 'Min Frequency') |
+ if (series.name === 'Min Frequency') { |
series.addCounterSample(ts, minFreq); |
- if (series.name === 'Max Frequency') |
+ } |
+ if (series.name === 'Max Frequency') { |
series.addCounterSample(ts, maxFreq); |
+ } |
}); |
}, |
@@ -117,8 +119,7 @@ tr.exportTo('tr.e.importer.linux_perf', function() { |
*/ |
powerStartEvent: function(eventName, cpuNumber, pid, ts, eventBase) { |
var event = /type=(\d+) state=(\d) cpu_id=(\d+)/.exec(eventBase.details); |
- if (!event) |
- return false; |
+ if (!event) return false; |
var targetCpuNumber = parseInt(event[3]); |
var cpuState = parseInt(event[2]); |
@@ -129,8 +130,7 @@ tr.exportTo('tr.e.importer.linux_perf', function() { |
powerFrequencyEvent: function(eventName, cpuNumber, pid, ts, eventBase) { |
var event = /type=(\d+) state=(\d+) cpu_id=(\d+)/ |
.exec(eventBase.details); |
- if (!event) |
- return false; |
+ if (!event) return false; |
var targetCpuNumber = parseInt(event[3]); |
var powerState = parseInt(event[2]); |
@@ -140,8 +140,7 @@ tr.exportTo('tr.e.importer.linux_perf', function() { |
cpuFrequencyEvent: function(eventName, cpuNumber, pid, ts, eventBase) { |
var event = /state=(\d+) cpu_id=(\d+)/.exec(eventBase.details); |
- if (!event) |
- return false; |
+ if (!event) return false; |
var targetCpuNumber = parseInt(event[2]); |
var powerState = parseInt(event[1]); |
@@ -151,8 +150,7 @@ tr.exportTo('tr.e.importer.linux_perf', function() { |
cpuFrequencyLimitsEvent: function(eventName, cpu, pid, ts, eventBase) { |
var event = /min=(\d+) max=(\d+) cpu_id=(\d+)/.exec(eventBase.details); |
- if (!event) |
- return false; |
+ if (!event) return false; |
var targetCpuNumber = parseInt(event[3]); |
var minFreq = parseInt(event[1]); |
@@ -163,8 +161,7 @@ tr.exportTo('tr.e.importer.linux_perf', function() { |
cpuIdleEvent: function(eventName, cpuNumber, pid, ts, eventBase) { |
var event = /state=(\d+) cpu_id=(\d+)/.exec(eventBase.details); |
- if (!event) |
- return false; |
+ if (!event) return false; |
var targetCpuNumber = parseInt(event[2]); |
var cpuState = parseInt(event[1]); |