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

Unified Diff: Source/devtools/front_end/sdk/TimelineManager.js

Issue 397823003: DevTools: Support multiple target in TimelineModelImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix tests Created 6 years, 5 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: Source/devtools/front_end/sdk/TimelineManager.js
diff --git a/Source/devtools/front_end/sdk/TimelineManager.js b/Source/devtools/front_end/sdk/TimelineManager.js
index f3f51f12e0af923052e30baf9cfd479fa9071545..d9c454f7f1befb0deae877b5a06fa32eb9bc0f10 100644
--- a/Source/devtools/front_end/sdk/TimelineManager.js
+++ b/Source/devtools/front_end/sdk/TimelineManager.js
@@ -73,10 +73,10 @@ WebInspector.TimelineManager.prototype = {
if (WebInspector.experimentsSettings.timelineJSCPUProfile.isEnabled() && maxCallStackDepth) {
this._configureCpuProfilerSamplingInterval();
this._jsProfilerStarted = true;
- ProfilerAgent.start();
+ this.target().profilerAgent().start();
}
if (this._enablementCount === 1)
- TimelineAgent.start(maxCallStackDepth, bufferEvents, liveEvents, includeCounters, includeGPUEvents, callback);
+ this.target().timelineAgent().start(maxCallStackDepth, bufferEvents, liveEvents, includeCounters, includeGPUEvents, callback);
else if (callback)
callback(null);
},
@@ -97,11 +97,11 @@ WebInspector.TimelineManager.prototype = {
var callbackBarrier = new CallbackBarrier();
if (this._jsProfilerStarted) {
- ProfilerAgent.stop(callbackBarrier.createCallback(profilerCallback));
+ this.target().profilerAgent().stop(callbackBarrier.createCallback(profilerCallback));
this._jsProfilerStarted = false;
}
if (!this._enablementCount)
- TimelineAgent.stop(callbackBarrier.createCallback(this._processBufferedEvents.bind(this, timelineCallback)));
+ this.target().timelineAgent().stop(callbackBarrier.createCallback(this._processBufferedEvents.bind(this, timelineCallback)));
callbackBarrier.callWhenDone(allDoneCallback.bind(this));
@@ -151,7 +151,7 @@ WebInspector.TimelineManager.prototype = {
_configureCpuProfilerSamplingInterval: function()
{
var intervalUs = WebInspector.settings.highResolutionCpuProfiling.get() ? 100 : 1000;
- ProfilerAgent.setSamplingInterval(intervalUs, didChangeInterval);
+ this.target().profilerAgent().setSamplingInterval(intervalUs, didChangeInterval);
function didChangeInterval(error)
{

Powered by Google App Engine
This is Rietveld 408576698