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

Unified Diff: tools/metrics/histograms/validate_format.py

Issue 13245008: Open-source histograms.xml, starting with Autofill histograms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: tools/metrics/histograms/validate_format.py
diff --git a/tools/metrics/histograms/validate_format.py b/tools/metrics/histograms/validate_format.py
new file mode 100644
index 0000000000000000000000000000000000000000..f337e6ed2cebc86e59c651aebd6522cb5b5af6ab
--- /dev/null
+++ b/tools/metrics/histograms/validate_format.py
@@ -0,0 +1,17 @@
+# Copyright 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Verifies that the histograms XML file is well-formatted."""
+
+import extract_histograms
+
+
+def main():
+ # This will raise an exception if the file is not well-formatted.
+ histograms = extract_histograms.ExtractHistograms('histograms.xml')
+
+
+if __name__ == '__main__':
+ main()
Ilya Sherman 2013/03/29 08:24:15 And this file is new, because "import extract_hist
+
« tools/metrics/histograms/pretty_print.py ('K') | « tools/metrics/histograms/update_policies.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698