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

Unified Diff: tracing/tracing/metrics/system_health/cpu_time_metric.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: Fix test 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/metrics/system_health/cpu_time_metric.html
diff --git a/tracing/tracing/metrics/system_health/cpu_time_metric.html b/tracing/tracing/metrics/system_health/cpu_time_metric.html
index d9f53028d903efc2fb52f3ff8c3662416d1ecbbe..b6c96c310136d5728e08d4c571c4c339bb38848a 100644
--- a/tracing/tracing/metrics/system_health/cpu_time_metric.html
+++ b/tracing/tracing/metrics/system_health/cpu_time_metric.html
@@ -62,10 +62,10 @@ tr.exportTo('tr.metrics.sh', function() {
var thread = process.threads[tid];
var threadCpuTime = 0;
thread.sliceGroup.topLevelSlices.forEach(function(slice) {
- if (slice.duration === 0)
- return;
- if (!slice.cpuDuration)
- return;
+ if (slice.duration === 0) return;
+
+ if (!slice.cpuDuration) return;
+
var sliceRange = tr.b.Range.fromExplicitRange(slice.start, slice.end);
var intersection = rangeOfInterest.findIntersection(sliceRange);
var fractionOfSliceInsideRangeOfInterest =

Powered by Google App Engine
This is Rietveld 408576698