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

Unified Diff: Source/devtools/protocol.json

Issue 254613002: DevTools: add Tracing agent on back-end (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments addressed 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
Index: Source/devtools/protocol.json
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
index 12f4e36669053b96e7bf0ed573378af5513d8174..37fa934773167be51419f5b6eaf88a70f20a3160 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -2762,10 +2762,7 @@
"commands": [
{
"name": "enable",
- "description": "Enables timeline. After this call, timeline can be started from within the page (for example upon console.timeline).",
- "parameters": [
- { "name": "traceEventCategoryFilter", "optional": true, "type": "string", "description": "If set, the timeline agent will automatically start tracing with the specified category filter when timeline is started." }
- ]
+ "description": "Enables timeline. After this call, timeline can be started from within the page (for example upon console.timeline)."
},
{
"name": "disable",
@@ -4021,30 +4018,52 @@
{
"name": "start",
"description": "Start trace events collection.",
- "async": true,
"parameters": [
{ "name": "categories", "type": "string", "description": "Category/tag filter" },
{ "name": "options", "type": "string", "description": "Tracing options" },
{ "name": "bufferUsageReportingInterval", "type": "number", "optional": true, "description": "If set, the agent will issue bufferUsage events at this interval, specified in milliseconds" }
],
- "handlers": ["browser", "frontend"]
+ "returns": [
+ { "name": "sessionId", "type": "string", "description": "A system-unique identifier of the tracing session that allows associating of some of the trace events with the inspected page" }
+ ],
+ "handlers": ["browser", "renderer", "frontend"]
},
{
"name": "end",
"description": "Stop trace events collection.",
"handlers": ["browser", "frontend"]
+ },
+ {
+ "name": "enable",
+ "description": "Enable the agent to be started from the inspected page, i.e. via a call to console.timeline(), and set default category filter.",
+ "parameters": [
+ { "name": "categories", "type": "string", "description": "Category/tag filter used when tracing is enabled by the inspected page." }
+ ]
+ },
+ {
+ "name": "disable",
+ "description": "Disable the agent to be started from the inspected page, i.e. via a call to console.timeline()."
}
],
"events": [
{
+ "name": "startedFromPage",
+ "parameters": [
+ { "name": "sessionId", "type": "string", "description": "A system-unique identifier of the tracing session that allows associating of some of the trace events with the inspected page" }
+ ],
+ "description": "Emitted when a page starts tracing using console.timeline()"
+ },
+ {
"name": "dataCollected",
"parameters": [
{ "name": "value", "type": "array", "items": { "type": "object" } }
],
+ "description": "Contains an bucket of collected trace events.",
"handlers": ["browser", "frontend"]
},
{
"name": "tracingComplete",
+ "description": "Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.",
"handlers": ["browser", "frontend"]
},
{

Powered by Google App Engine
This is Rietveld 408576698