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

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: 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/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 778bdf6273ce3a5cd243f0a01c65b2ba9d5c9024..6e63fd636e564a7cbcb1f4cb7efb91f697692bd9 100644
--- a/tracing/tracing/metrics/system_health/cpu_time_metric.html
+++ b/tracing/tracing/metrics/system_health/cpu_time_metric.html
@@ -62,10 +62,8 @@ 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.math.Range.fromExplicitRange(
slice.start, slice.end);
var intersection = rangeOfInterest.findIntersection(sliceRange);

Powered by Google App Engine
This is Rietveld 408576698