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

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

Issue 247513002: Timeline: produce session cookie when timeline is started (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: use IndetifiersFactory instead of directly getting processId Created 6 years, 8 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 | « Source/core/inspector/InspectorTimelineAgent.cpp ('k') | Source/devtools/front_end/TracingModel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/TimelineManager.js
diff --git a/Source/devtools/front_end/TimelineManager.js b/Source/devtools/front_end/TimelineManager.js
index 2a346c1d6c0c3f88a956989c8e2a80f0e32f1c5f..9be7603a0d77178047a7dcff49c3a8b674f3d53c 100644
--- a/Source/devtools/front_end/TimelineManager.js
+++ b/Source/devtools/front_end/TimelineManager.js
@@ -38,6 +38,7 @@ WebInspector.TimelineManager = function(target)
WebInspector.TargetAwareObject.call(this, target);
this._dispatcher = new WebInspector.TimelineDispatcher(this);
this._enablementCount = 0;
+ this._sessionId = "";
TimelineAgent.enable(WebInspector.experimentsSettings.timelineTracingMode.isEnabled() ? WebInspector.TimelineManager.defaultTracingCategories : "");
}
@@ -127,6 +128,14 @@ WebInspector.TimelineManager.prototype = {
},
/**
+ * @return {string}
+ */
+ sessionId: function()
+ {
+ return this._sessionId;
+ },
+
+ /**
* @param {function(?Protocol.Error)|undefined} callback
* @param {?Protocol.Error} error
* @param {!Array.<!TimelineAgent.TimelineEvent>=} events
@@ -183,15 +192,17 @@ WebInspector.TimelineDispatcher.prototype = {
},
/**
+ * @param {string} sessionId
* @param {boolean=} consoleTimeline
*/
- started: function(consoleTimeline)
+ started: function(sessionId, consoleTimeline)
{
if (consoleTimeline) {
// Wake up timeline panel module.
WebInspector.moduleManager.loadModule("timeline");
}
this._started = true;
+ this._manager._sessionId = sessionId;
this._manager.dispatchEventToListeners(WebInspector.TimelineManager.EventTypes.TimelineStarted, consoleTimeline);
},
« no previous file with comments | « Source/core/inspector/InspectorTimelineAgent.cpp ('k') | Source/devtools/front_end/TracingModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698