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

Unified Diff: tracing/tracing/model/object_instance.html

Issue 1963583005: Rewrite firstPaintMetric to support extracting multiple navigations from a single trace (Closed) Base URL: https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Patch Set: rebased Created 4 years, 7 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
« no previous file with comments | « tracing/tracing/metrics/system_health/first_paint_metric_test.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/object_instance.html
diff --git a/tracing/tracing/model/object_instance.html b/tracing/tracing/model/object_instance.html
index cfc1356321feb70c6e1535e6861a389bd3d7d425..37337712073ec63d18e1f63c2dc5203ac62a705d 100644
--- a/tracing/tracing/model/object_instance.html
+++ b/tracing/tracing/model/object_instance.html
@@ -6,10 +6,10 @@ found in the LICENSE file.
-->
<link rel="import" href="/tracing/base/extension_registry.html">
-<link rel="import" href="/tracing/model/event.html">
-<link rel="import" href="/tracing/model/object_snapshot.html">
<link rel="import" href="/tracing/base/range.html">
<link rel="import" href="/tracing/base/sorted_array_utils.html">
+<link rel="import" href="/tracing/model/event.html">
+<link rel="import" href="/tracing/model/object_snapshot.html">
<script>
'use strict';
@@ -120,6 +120,15 @@ tr.exportTo('tr.model', function() {
this.snapshots[i].initialize();
},
+ isAliveAt: function(ts) {
+ if (ts < this.creationTs && this.creationTsWasExplicit)
+ return false;
+ if (ts > this.deletionTs)
+ return false;
+
+ return true;
+ },
+
getSnapshotAt: function(ts) {
if (ts < this.creationTs) {
if (this.creationTsWasExplicit)
« no previous file with comments | « tracing/tracing/metrics/system_health/first_paint_metric_test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698