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

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: 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
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 ExtensionEvents and ExtensionFunctions enum in histograms.xml file
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',
not at google - send to devlin 2015/06/22 23:42:11 This is just update_extension_functions.py moved,
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

Powered by Google App Engine
This is Rietveld 408576698