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

Unified Diff: Source/devtools/front_end/timeline/TracingModel.js

Issue 622843002: DevTools: Support timeline JS sampling for all threads. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tweak Created 6 years, 1 month 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: Source/devtools/front_end/timeline/TracingModel.js
diff --git a/Source/devtools/front_end/timeline/TracingModel.js b/Source/devtools/front_end/timeline/TracingModel.js
index 4877ded527be345efa1d48a2b9f1832427c6cdf8..b047beb820d23d0844355dd63959e1a07b457299 100644
--- a/Source/devtools/front_end/timeline/TracingModel.js
+++ b/Source/devtools/front_end/timeline/TracingModel.js
@@ -808,7 +808,10 @@ WebInspector.TracingModel.Thread.prototype = {
target: function()
{
//FIXME: correctly specify target
- return WebInspector.targetManager.targets()[0] || null;
+ if (this.name() === "CrRendererMain")
+ return WebInspector.targetManager.targets()[0] || null;
+ else
+ return null;
},
/**
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineJSProfile.js ('k') | Source/devtools/front_end/timeline/TracingTimelineModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698