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

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

Issue 2484213003: Convert performance monitor to the subscription model. (Closed)
Patch Set: core export 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 1b318bb091a18bcfb4192e29d6b70d0a7c12fc07..b4d8c900578195194ca98d68b8bebf0d951c95a4 100644
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
@@ -4374,6 +4374,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": "Violation type." },
+ { "name": "threshold", "type": "number", "description": "Time threshold to trigger upon." }
+ ]
}
],
"commands": [
@@ -4390,11 +4399,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."
+ },
+ {
+ "name": "stopViolationsReport",
+ "description": "Stop violation reporting."
}
],
"events": [
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp ('k') | third_party/WebKit/Source/core/timing/Performance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698