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

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

Issue 1290323003: Create a mapper to compute browser and renderer startup durations. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Answered nits. Created 5 years, 4 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/model/thread.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/thread_slice.html
diff --git a/tracing/tracing/model/thread_slice.html b/tracing/tracing/model/thread_slice.html
index 67dba1910f581dd499d2fc5bec170102945bbb1c..561697303bbe4dae36ef38fb8a13417c5976e3cb 100644
--- a/tracing/tracing/model/thread_slice.html
+++ b/tracing/tracing/model/thread_slice.html
@@ -18,7 +18,7 @@ tr.exportTo('tr.model', function() {
/**
* A ThreadSlice represents an interval of time on a thread resource
- * with associated nestinged slice information.
+ * with associated nesting slice information.
*
* ThreadSlices are typically associated with a specific trace event pair on a
* specific thread.
@@ -40,7 +40,14 @@ tr.exportTo('tr.model', function() {
}
ThreadSlice.prototype = {
- __proto__: Slice.prototype
+ __proto__: Slice.prototype,
+
+ getProcess: function() {
+ var thread = this.parentContainer;
+ if (thread && thread.getProcess)
+ return thread.getProcess();
+ return undefined;
+ }
};
tr.model.EventRegistry.register(
« no previous file with comments | « tracing/tracing/model/thread.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698