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

Issue 12800004: [Telemetry] Add tab API function GetJavascriptStats(). (Closed)

Created:
7 years, 9 months ago by dennis_jeffrey
Modified:
7 years, 9 months ago
Reviewers:
dtu, nduca
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org, Dai Mikurube (NOT FULLTIME)
Visibility:
Public.

Description

[Telemetry] Add tab property "dom_stats". Currently, the associated function reaches into the inspector_backend, which in turn now has a new module to communicate with the remote inspector's "Memory" domain. This allows us to query the remote inspector for the DOM node count, document count, and event listener count, for a tab. Making this change is a prerequisite to converting the Chrome Endure endurance tests over to Telemetry from their current pyauto-based implementation. BUG=chromium-os:39589 TEST=tools/telemetry/run_tests InspectorMemoryTest Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188092

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed first round of review comments. #

Patch Set 3 : Minor edit to part of function name: Dom --> DOM #

Patch Set 4 : Addressed second round of review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -0 lines) Patch
M tools/telemetry/telemetry/core/chrome/inspector_backend.py View 1 2 3 chunks +12 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/chrome/inspector_memory.py View 1 2 1 chunk +50 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/chrome/inspector_memory_unittest.py View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/tab.py View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A tools/telemetry/unittest_data/dom_counter_sample.html View 1 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
dennis_jeffrey
Dave, Nat, Please take a look. This is a revised version of my earlier CL ...
7 years, 9 months ago (2013-03-12 21:34:37 UTC) #1
nduca
lgtm with nits. awesome. https://codereview.chromium.org/12800004/diff/1/tools/telemetry/telemetry/core/tab.py File tools/telemetry/telemetry/core/tab.py (right): https://codereview.chromium.org/12800004/diff/1/tools/telemetry/telemetry/core/tab.py#newcode74 tools/telemetry/telemetry/core/tab.py:74: def GetJavascriptStats(self, timeout=DEFAULT_TAB_TIMEOUT): GetDOMStats? Sorry ...
7 years, 9 months ago (2013-03-13 03:58:44 UTC) #2
dennis_jeffrey
Thanks! Anything else before I commit? https://codereview.chromium.org/12800004/diff/1/tools/telemetry/telemetry/core/tab.py File tools/telemetry/telemetry/core/tab.py (right): https://codereview.chromium.org/12800004/diff/1/tools/telemetry/telemetry/core/tab.py#newcode74 tools/telemetry/telemetry/core/tab.py:74: def GetJavascriptStats(self, timeout=DEFAULT_TAB_TIMEOUT): ...
7 years, 9 months ago (2013-03-13 21:42:46 UTC) #3
nduca
ship it. lgtm.
7 years, 9 months ago (2013-03-13 22:46:51 UTC) #4
dtu
The other stats that tonyg added had the naming @property xyz_stats() instead of GetXyzStats(). https://chromiumcodereview.appspot.com/11576050/
7 years, 9 months ago (2013-03-13 22:48:14 UTC) #5
dennis_jeffrey
On 2013/03/13 22:48:14, Dave Tu wrote: > The other stats that tonyg added had the ...
7 years, 9 months ago (2013-03-13 23:13:08 UTC) #6
dtu
On 2013/03/13 23:13:08, dennis_jeffrey wrote: > On 2013/03/13 22:48:14, Dave Tu wrote: > > The ...
7 years, 9 months ago (2013-03-13 23:26:40 UTC) #7
dennis_jeffrey
Done. PTAL.
7 years, 9 months ago (2013-03-13 23:41:10 UTC) #8
dtu
thanks! lglgtmtm
7 years, 9 months ago (2013-03-13 23:46:08 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dennisjeffrey@chromium.org/12800004/6006
7 years, 9 months ago (2013-03-13 23:52:11 UTC) #10
commit-bot: I haz the power
7 years, 9 months ago (2013-03-14 16:09:16 UTC) #11
Message was sent while issue was closed.
Change committed as 188092

Powered by Google App Engine
This is Rietveld 408576698