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

Unified Diff: tracing/tracing/metrics/system_health/loading_metric.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/metrics/system_health/loading_metric.html
diff --git a/tracing/tracing/metrics/system_health/loading_metric.html b/tracing/tracing/metrics/system_health/loading_metric.html
index 89439cb080dcf3ade61767c986bcfeeb49424bae..dabd83225fa6e6b8fb267d5c08b189175384e31d 100644
--- a/tracing/tracing/metrics/system_health/loading_metric.html
+++ b/tracing/tracing/metrics/system_health/loading_metric.html
@@ -6,7 +6,7 @@ found in the LICENSE file.
-->
<link rel="import" href="/tracing/base/category_util.html">
-<link rel="import" href="/tracing/base/statistics.html">
+<link rel="import" href="/tracing/base/math/statistics.html">
<link rel="import" href="/tracing/metrics/metric_registry.html">
<link rel="import" href="/tracing/metrics/system_health/utils.html">
<link rel="import" href="/tracing/model/helpers/chrome_model_helper.html">
@@ -215,8 +215,8 @@ tr.exportTo('tr.metrics.sh', function() {
function addFirstMeaningfulPaintCpuTimeSample(samples, rendererHelper,
frameIdRef, navigationStart, fmpMarkerEvent) {
- var rangeOfInterest = tr.b.Range.fromExplicitRange(navigationStart.cpuStart,
- fmpMarkerEvent.cpuStart);
+ var rangeOfInterest = tr.b.math.Range.fromExplicitRange(
+ navigationStart.cpuStart, fmpMarkerEvent.cpuStart);
var snapshot = findFrameLoaderSnapshotAt(
rendererHelper, frameIdRef, fmpMarkerEvent.start);
if (!snapshot || !snapshot.args.isLoadingMainFrame) return;
@@ -249,7 +249,7 @@ tr.exportTo('tr.metrics.sh', function() {
var mainThreadCpuTime = 0;
for (var slice of rendererHelper.mainThread.sliceGroup.topLevelSlices) {
if (!slice.cpuDuration) continue;
- var sliceRange = tr.b.Range.fromExplicitRange(slice.cpuStart,
+ var sliceRange = tr.b.math.Range.fromExplicitRange(slice.cpuStart,
slice.cpuStart + slice.cpuDuration);
var intersection = rangeOfInterest.findIntersection(sliceRange);
mainThreadCpuTime += intersection.duration;

Powered by Google App Engine
This is Rietveld 408576698