summaryrefslogtreecommitdiffstats
path: root/tools/metrics/rappor
diff options
context:
space:
mode:
authornick <nick@chromium.org>2015-06-03 16:27:42 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-03 23:28:19 +0000
commit0b08cdaeab9210611012014b9ba7ac93d7efb5c7 (patch)
treee6e4e289cddb6adb79e2961c5ee1149d2476ee31 /tools/metrics/rappor
parent3d81929ed1e99aba25dc364147a34537dd1fe7c7 (diff)
downloadchromium_src-0b08cdaeab9210611012014b9ba7ac93d7efb5c7.zip
chromium_src-0b08cdaeab9210611012014b9ba7ac93d7efb5c7.tar.gz
chromium_src-0b08cdaeab9210611012014b9ba7ac93d7efb5c7.tar.bz2
Histograms.xml python script housekeeping:
- Add an autogeneration script for the bad_message.h files. - add histogram_paths.py, to help deal with paths consistently. - Specify filenames relative to src/ in all scripts. This makes things more greppable, and eliminates a problem where the os- specific path separator would seep into the histograms.xml if you ran the scripts on Windows. - Make the scripts run properly from any directory (previously they had to be run from the histograms directory). - Update some docstring comments (google python style) Changes outside of tools\metrics: - From bad_message.h files, mention the autogen script. And finally: - Run all the scripts, which revealed some neglected enum values. TEST=Run tools/metrics/.../*.py on Windows BUG=338781,485227 Review URL: https://codereview.chromium.org/1143323006 Cr-Commit-Position: refs/heads/master@{#332724}
Diffstat (limited to 'tools/metrics/rappor')
-rwxr-xr-xtools/metrics/rappor/pretty_print.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/metrics/rappor/pretty_print.py b/tools/metrics/rappor/pretty_print.py
index 4fcda70..f88e1c3 100755
--- a/tools/metrics/rappor/pretty_print.py
+++ b/tools/metrics/rappor/pretty_print.py
@@ -4,10 +4,9 @@
# found in the LICENSE file.
import logging
-import sys
import os
+import sys
-# Import the metrics/common module for pretty print xml.
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'common'))
import models
import presubmit_util