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

Side by Side Diff: tools/perf/metrics/stats_table_util.py

Issue 23112028: [Telemetry] Add support for capturing V8 object stats to Telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stats_table_android
Patch Set: Created 7 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 """This is a helper module to get and manipulate stats table data.
6
7 The status table data is the same data as is visible from "chrome://stats" and
8 relies on --enable-stats-table being set.
9 More information can be found at: chromium/src/base/metrics/stats_table.h
10
11 Stats table data is collected with the window.statsCollectionController object.
12 """
13
14 import json
15
16
17 def GetStatsTable(tab):
18 """Get the full stats table from the browser."""
19 stats_table_json = tab.EvaluateJavaScript(
20 'statsCollectionController.getStatsTable()')
21 if stats_table_json:
22 return json.loads(stats_table_json)
23 return None
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698