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

Unified Diff: third_party/WebKit/Source/core/inspector/browser_protocol.json

Issue 2484213003: Convert performance monitor to the subscription model. (Closed)
Patch Set: same Created 4 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: third_party/WebKit/Source/core/inspector/browser_protocol.json
diff --git a/third_party/WebKit/Source/core/inspector/browser_protocol.json b/third_party/WebKit/Source/core/inspector/browser_protocol.json
index 08acb7bd0cc6490b65856a9dc16f2585a5037d7b..fcd9712db9359ef501dd4196ab6f510c85bcb617 100644
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
@@ -4372,6 +4372,15 @@
{ "name": "networkRequestId", "$ref": "Network.RequestId", "optional": true, "description": "Identifier of the network request associated with this entry." },
{ "name": "workerId", "type": "string", "optional": true, "description": "Identifier of the worker associated with this entry." }
]
+ },
+ {
+ "id": "ViolationSetting",
+ "type": "object",
+ "description": "Violation configuration setting.",
+ "properties": [
+ { "name": "name", "type": "string", "enum": ["longTask", "longLayout", "blockedEvent"], "description": "Entry name." },
caseq 2016/11/09 00:41:11 "description": "Type of violation."?
pfeldman 2016/11/09 01:39:14 Done.
+ { "name": "threshold", "type": "number", "description": "Time threshold to trigger upon." }
+ ]
}
],
"commands": [
@@ -4388,11 +4397,15 @@
"description": "Clears the log."
},
{
- "name": "setReportViolationsEnabled",
+ "name": "startViolationsReport",
"parameters": [
- { "name": "enabled", "type": "boolean", "description": "Pass true to enable." }
+ { "name": "config", "type": "array", "items": { "$ref": "ViolationSetting" }, "description": "Configuration for violations." }
],
- "description": "Reports runtime audit violations as log entries."
+ "description": "start violation reporting."
caseq 2016/11/09 00:41:11 s/start/Start/
pfeldman 2016/11/09 01:39:14 Done.
+ },
+ {
+ "name": "stopViolationsReport",
+ "description": "Stop violation reporting."
}
],
"events": [

Powered by Google App Engine
This is Rietveld 408576698