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

Unified Diff: third_party/WebKit/Source/core/probe/CoreProbes.json5

Issue 2798453002: [instrumentation]: Move probe subscriptions to JSON5 config file from PIDL. (Closed)
Patch Set: Created 3 years, 9 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: third_party/WebKit/Source/core/probe/CoreProbes.json5
diff --git a/third_party/WebKit/Source/core/probe/CoreProbes.json5 b/third_party/WebKit/Source/core/probe/CoreProbes.json5
index 55c17aabaecaf4f45af1aec1490411bbfbff1560..133d29e44d4fe55cebd0bf6e74beba25645571af 100644
--- a/third_party/WebKit/Source/core/probe/CoreProbes.json5
+++ b/third_party/WebKit/Source/core/probe/CoreProbes.json5
@@ -1,18 +1,182 @@
{
settings: {
export_symbol: "CORE_EXPORT",
- default_include: "core/inspector"
+ default_include: "core/inspector",
+ probes_header: "core/probe/CoreProbes.h"
},
observers: {
+ Animation: {
+ probes: [
+ "animationPlayStateChanged",
+ "didClearDocumentOfWindowObject",
+ "didCreateAnimation",
+ ]
+ },
+ ApplicationCache: {
+ probes: [
+ "networkStateChanged",
+ "updateApplicationCacheStatus",
+ ]
+ },
+ CSS: {
+ probes: [
+ "activeStyleSheetsUpdated",
+ "documentDetached",
+ "fontsUpdated",
+ "forcePseudoState",
+ "mediaQueryResultChanged",
+ ]
+ },
+ DOM: {
+ probes: [
+ "characterDataModified",
+ "didCommitLoad",
+ "didInsertDOMNode",
+ "didInvalidateStyleAttr",
+ "didModifyDOMAttr",
+ "didPerformElementShadowDistribution",
+ "didPerformSlotDistribution",
+ "didPushShadowRoot",
+ "didRemoveDOMAttr",
+ "domContentLoadedEventFired",
+ "frameDocumentUpdated",
+ "pseudoElementCreated",
+ "pseudoElementDestroyed",
+ "willModifyDOMAttr",
+ "willPopShadowRoot",
+ "willRemoveDOMNode",
+ ]
+ },
+ DOMDebugger: {
+ probes: [
+ "breakableLocation",
+ "didCreateCanvasContext",
+ "didFireWebGLError",
+ "didFireWebGLErrorOrWarning",
+ "didFireWebGLWarning",
+ "didInsertDOMNode",
+ "didInvalidateStyleAttr",
+ "ExecuteScript",
+ "scriptExecutionBlockedByCSP",
+ "UserCallback",
+ "willInsertDOMNode",
+ "willModifyDOMAttr",
+ "willRemoveDOMNode",
+ "willSendXMLHttpOrFetchNetworkRequest",
+ ]
+ },
+ LayerTree: {
+ probes: [
+ "didPaint",
+ "layerTreeDidChange",
+ ]
+ },
+ Log: {
+ probes: [
+ "consoleMessageAdded",
+ ]
+ },
Network: {
- class: "InspectorNetworkAgent"
+ class: "InspectorNetworkAgent",
+ probes: [
+ "applyUserAgentOverride",
+ "detachClientRequest",
+ "didBlockRequest",
+ "didChangeResourcePriority",
+ "didCloseWebSocket",
+ "didCommitLoad",
+ "didCreateWebSocket",
+ "didFailFetch",
+ "didFailLoading",
+ "didFailXHRLoading",
+ "didFinishEventSourceRequest",
+ "didFinishFetch",
+ "didFinishLoading",
+ "didFinishXHRLoading",
+ "didReceiveCORSRedirectResponse",
+ "didReceiveData",
+ "didReceiveEncodedDataLength",
+ "didReceiveResourceResponse",
+ "didReceiveScriptResponse",
+ "didReceiveWebSocketFrame",
+ "didReceiveWebSocketFrameError",
+ "didReceiveWebSocketHandshakeResponse",
+ "didSendWebSocketFrame",
+ "documentThreadableLoaderFailedToStartLoadingForClient",
+ "documentThreadableLoaderStartedLoadingForClient",
+ "frameClearedScheduledClientNavigation",
+ "frameClearedScheduledNavigation",
+ "frameScheduledClientNavigation",
+ "frameScheduledNavigation",
+ "markResourceAsCached",
+ "scriptImported",
+ "shouldBlockRequest",
+ "shouldForceCORSPreflight",
+ "willDispatchEventSourceEvent",
+ "willLoadXHR",
+ "willSendEventSourceRequest",
+ "willSendRequest",
+ "willSendWebSocketHandshakeRequest",
+ "willStartFetch",
+ ]
},
- TraceEvents: {
- class: "InspectorTraceEvents"
+ Page: {
+ probes: [
+ "didChangeViewport",
+ "didClearDocumentOfWindowObject",
+ "didCommitLoad",
+ "didResizeMainFrame",
+ "didRunJavaScriptDialog",
+ "domContentLoadedEventFired",
+ "frameAttachedToParent",
+ "frameClearedScheduledNavigation",
+ "frameDetachedFromParent",
+ "frameScheduledNavigation",
+ "frameStartedLoading",
+ "frameStoppedLoading",
+ "loadEventFired",
+ "RecalculateStyle",
+ "UpdateLayout",
+ "willRunJavaScriptDialog",
+ "windowCreated",
+ ]
},
Performance: {
class: "PerformanceMonitor",
- include: "core/frame"
- }
+ include: "core/frame",
+ probes: [
+ "CallFunction",
+ "documentWriteFetchScript",
+ "ExecuteScript",
+ "RecalculateStyle",
+ "UpdateLayout",
+ "UserCallback",
+ ]
+ },
+ TraceEvents: {
+ class: "InspectorTraceEvents",
+ probes: [
+ "CallFunction",
+ "didFailLoading",
+ "didFinishLoading",
+ "didReceiveData",
+ "didReceiveResourceResponse",
+ "ParseHTML",
+ "willSendRequest",
+ ]
+ },
+ Tracing: {
+ probes: [
+ "frameStartedLoading",
+ "frameStoppedLoading",
+ ]
+ },
+ Worker: {
+ probes: [
+ "didStartWorker",
+ "shouldWaitForDebuggerOnWorkerStart",
+ "workerTerminated",
+ ]
+ },
}
}

Powered by Google App Engine
This is Rietveld 408576698