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

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

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 9 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/exynos_parser.html
diff --git a/tracing/tracing/extras/importer/linux_perf/exynos_parser.html b/tracing/tracing/extras/importer/linux_perf/exynos_parser.html
index f32f85cb21a87c4b206c955cc76d1d71e76843f6..58ea2740c993adc0bc76052515d1c2ebb55f441b 100644
--- a/tracing/tracing/extras/importer/linux_perf/exynos_parser.html
+++ b/tracing/tracing/extras/importer/linux_perf/exynos_parser.html
@@ -54,8 +54,7 @@ tr.exportTo('tr.e.importer.linux_perf', function() {
*/
busfreqTargetIntEvent: function(eventName, cpuNumber, pid, ts, eventBase) {
var event = /frequency=(\d+)/.exec(eventBase.details);
- if (!event)
- return false;
+ if (!event) return false;
this.exynosBusfreqSample('INT Frequency', ts, parseInt(event[1]));
return true;
@@ -66,8 +65,7 @@ tr.exportTo('tr.e.importer.linux_perf', function() {
*/
busfreqTargetMifEvent: function(eventName, cpuNumber, pid, ts, eventBase) {
var event = /frequency=(\d+)/.exec(eventBase.details);
- if (!event)
- return false;
+ if (!event) return false;
this.exynosBusfreqSample('MIF Frequency', ts, parseInt(event[1]));
return true;
@@ -99,8 +97,7 @@ tr.exportTo('tr.e.importer.linux_perf', function() {
*/
pageFlipStateEvent: function(eventName, cpuNumber, pid, ts, eventBase) {
var event = /pipe=(\d+), fb=(\d+), state=(.*)/.exec(eventBase.details);
- if (!event)
- return false;
+ if (!event) return false;
var pipe = parseInt(event[1]);
var fb = parseInt(event[2]);
@@ -111,8 +108,9 @@ tr.exportTo('tr.e.importer.linux_perf', function() {
pipe: pipe,
fb: fb
});
- if (state !== 'flipped')
+ if (state !== 'flipped') {
this.exynosPageFlipStateOpenSlice(ts, pipe, fb, state);
+ }
return true;
}
};

Powered by Google App Engine
This is Rietveld 408576698