Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Unified Diff: tracing/tracing/extras/importer/linux_perf/power_parser.html

Issue 2390373003: Change all == to === and != to !== in trace viewer. (Closed)
Patch Set: more changes from code review Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 c6d01a26d05abd7c5ffb9093bd572d4547cbda25..228132173c376f673b24a90339c5e811e7e469de 100644
--- a/tracing/tracing/extras/importer/linux_perf/power_parser.html
+++ b/tracing/tracing/extras/importer/linux_perf/power_parser.html
@@ -46,7 +46,7 @@ tr.exportTo('tr.e.importer.linux_perf', function() {
cpuStateSlice: function(ts, targetCpuNumber, eventType, cpuState) {
var targetCpu = this.importer.getOrCreateCpu(targetCpuNumber);
var powerCounter;
- if (eventType != '1') {
+ if (eventType !== '1') {
this.importer.model.importWarning({
type: 'parse_error',
message: 'Don\'t understand power_start events of ' +
@@ -73,7 +73,7 @@ tr.exportTo('tr.e.importer.linux_perf', function() {
ColorScheme.getColorIdForGeneralPurposeString(powerCounter.name)));
}
// NB: 4294967295/-1 means an exit from the current state
- var val = (cpuState != 4294967295 ? cpuState + 1 : 0);
+ var val = (cpuState !== 4294967295 ? cpuState + 1 : 0);
powerCounter.series.forEach(function(series) {
series.addCounterSample(ts, val);
});
@@ -106,9 +106,9 @@ 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);
});
},

Powered by Google App Engine
This is Rietveld 408576698