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

Unified Diff: tracing/tracing/metrics/v8/utils.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/v8/utils.html
diff --git a/tracing/tracing/metrics/v8/utils.html b/tracing/tracing/metrics/v8/utils.html
index 79c3af24722c62e9f7fb653982cbe07a79a38eef..b394de70dbd69913e86ba1154fd38d97ab8fe2a2 100644
--- a/tracing/tracing/metrics/v8/utils.html
+++ b/tracing/tracing/metrics/v8/utils.html
@@ -6,9 +6,9 @@ found in the LICENSE file.
-->
<link rel="import" href="/tracing/base/category_util.html">
-<link rel="import" href="/tracing/base/piecewise_linear_function.html">
-<link rel="import" href="/tracing/base/range.html">
-<link rel="import" href="/tracing/base/range_utils.html">
+<link rel="import" href="/tracing/base/math/piecewise_linear_function.html">
+<link rel="import" href="/tracing/base/math/range.html">
+<link rel="import" href="/tracing/base/math/range_utils.html">
<link rel="import" href="/tracing/base/unit.html">
<link rel="import" href="/tracing/metrics/metric_registry.html">
<link rel="import" href="/tracing/value/histogram.html">
@@ -185,7 +185,7 @@ tr.exportTo('tr.metrics.v8.utils', function() {
function unionOfIntervals(intervals) {
if (intervals.length === 0)
return [];
- return tr.b.mergeRanges(
+ return tr.b.math.mergeRanges(
intervals.map(x => { return { min: x.start, max: x.end }; }), 1e-6,
function(ranges) {
return {
@@ -210,8 +210,8 @@ tr.exportTo('tr.metrics.v8.utils', function() {
model.globalMemoryDumps.filter(hasV8Stats).reduce(
(start, dump) => Math.min(start, dump.start), Infinity);
if (startOfFirstDumpWithV8 === Infinity)
- return new tr.b.Range(); // Empty range.
- return tr.b.Range.fromExplicitRange(startOfFirstDumpWithV8, Infinity);
+ return new tr.b.math.Range(); // Empty range.
+ return tr.b.math.Range.fromExplicitRange(startOfFirstDumpWithV8, Infinity);
}
return {
« no previous file with comments | « tracing/tracing/metrics/v8/runtime_stats_metric.html ('k') | tracing/tracing/metrics/webrtc/webrtc_rendering_metric.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698