DevTools: Introduce performance metrics API in the protocol

Desktop / Chromium - Alexei Filippov [chromium.org] - 10 August 2017 19:48 EDT

The following methods are added to Performance domain:- enable- disable- getMetrics

The metrics are collected per Local Frame root. The patch adds a single metric for DocumentCount.

Bug: 751892 Change-Id: I3e45eaf78b4b4b2c3c5fa55d6fc9cc205b1b63a1 Reviewed-on: https://chromium-review.googlesource.com/599350 Commit-Queue: Alexei Filippov

2326c3a DevTools: Introduce performance metrics API in the protocol.
.../browser/devtools/protocol/schema_handler.cc | 3 +-
.../performance/perf-counters-expected.txt | 6 +++
.../performance/perf-counters.js | 18 +++++++
.../inspector/agents-enable-disable-expected.txt | 4 ++
third_party/WebKit/Source/core/dom/Document.cpp | 5 ++
.../Source/core/exported/WebDevToolsAgentImpl.cpp | 3 ++
.../Source/core/frame/PerformanceMonitor.cpp | 1 +
.../WebKit/Source/core/frame/PerformanceMonitor.h | 28 +++++++++-
third_party/WebKit/Source/core/inspector/BUILD.gn | 4 ++
.../core/inspector/InspectorPerformanceAgent.cpp | 61 ++++++++++++++++++++++
.../core/inspector/InspectorPerformanceAgent.h | 45 ++++++++++++++++
.../Source/core/inspector/browser_protocol.json | 32 ++++++++++++
.../core/inspector/inspector_protocol_config.json | 3 ++
13 files changed, 210 insertions(+), 3 deletions(-)

Upstream: git.chromium.org


  • Share