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

Unified Diff: tracing/tracing/extras/cpu/cpu_usage_auditor.html

Issue 2771723003: [tracing] Move math utilities from base into their own subdirectory (attempt 2) (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/cpu/cpu_usage_auditor.html
diff --git a/tracing/tracing/extras/cpu/cpu_usage_auditor.html b/tracing/tracing/extras/cpu/cpu_usage_auditor.html
index 3c42fe6592f1a33e18e9177755f0181b368f76cc..0282cf2e0f934153e21168257b3bd61754ec8bd7 100644
--- a/tracing/tracing/extras/cpu/cpu_usage_auditor.html
+++ b/tracing/tracing/extras/cpu/cpu_usage_auditor.html
@@ -5,7 +5,7 @@ Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
-<link rel="import" href="/tracing/base/math.html">
+<link rel="import" href="/tracing/base/math/math.html">
<link rel="import" href="/tracing/core/auditor.html">
<link rel="import" href="/tracing/model/resource_usage_series.html">
@@ -93,7 +93,7 @@ tr.exportTo('tr.e.audits', function() {
e.cpuSelfTime === undefined) {
continue;
}
- var usage = tr.b.clamp(e.cpuSelfTime / e.selfTime, 0, 1);
+ var usage = tr.b.math.clamp(e.cpuSelfTime / e.selfTime, 0, 1);
// Go through the area covered by this slice but not its subslices
// and add the cpuSelfTimeRatio contribution over this area.
« no previous file with comments | « tracing/tracing/extras/chrome/layout_object.html ('k') | tracing/tracing/extras/importer/android/event_log_importer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698