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

Side by Side Diff: tools/metrics/histograms/update_extension_histograms.py

Issue 1201063002: Set up the infrastructure for Extension event metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaaaaase Created 5 years, 6 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
« no previous file with comments | « tools/metrics/histograms/update_extension_functions.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 """Updates the ExtensionEvents and ExtensionFunctions enums in histograms.xml
6 with values read from extension_event_histogram_value.h and
7 extension_function_histogram_value.h.
8
9 If the file was pretty-printed, the updated version is pretty-printed too.
10 """
11
12 import os
13 import sys
14
15 from update_histogram_enum import UpdateHistogramEnum
16
17 if __name__ == '__main__':
18 if len(sys.argv) > 1:
19 print >>sys.stderr, 'No arguments expected!'
20 sys.stderr.write(__doc__)
21 sys.exit(1)
22
23 histograms = (
24 ('ExtensionEvents',
25 'extensions/browser/extension_event_histogram_value.h'),
26 ('ExtensionFunctions',
27 'extensions/browser/extension_function_histogram_value.h'))
28 for enum_name, source_header in histograms:
29 UpdateHistogramEnum(histogram_enum_name=enum_name,
30 source_enum_path=source_header,
31 start_marker='^enum HistogramValue {',
32 end_marker='^ENUM_BOUNDARY')
OLDNEW
« no previous file with comments | « tools/metrics/histograms/update_extension_functions.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698