summaryrefslogtreecommitdiffstats
path: root/tools/valgrind/drmemory_analyze.py
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-02 23:59:04 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-02 23:59:04 +0000
commit9351299cc8a50356d02d340839f679175c342ffd (patch)
tree50c4c7bca2ab66b65135b736a2e46be086fda2a4 /tools/valgrind/drmemory_analyze.py
parentfe38b1e0819183558d08d3ed3bb0d46f9ce9f961 (diff)
downloadchromium_src-9351299cc8a50356d02d340839f679175c342ffd.zip
chromium_src-9351299cc8a50356d02d340839f679175c342ffd.tar.gz
chromium_src-9351299cc8a50356d02d340839f679175c342ffd.tar.bz2
Memory scripts: Accept --build-dir in addition to --build_dir.
Many more tools accept --build-dir, so try to standardize at that. (Keep --build_dir around for a while longer so that we can change the bot configs to the new flag first.) Most of memory tools use --under_flags, so this increases self-inconsistency a bit, but they already have some --dash-flags (e.g. --help-tests) and the remaining flags are mostly --gtest_filter and friends. Change --source_dir to --source-dir at least to keep it similar to --build-dir. (And remove --source_dir from tsan_analyze.py, where it was unused.) BUG=294387 R=scottmg@chromium.org TBR=thestig Review URL: https://codereview.chromium.org/25815003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226623 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/valgrind/drmemory_analyze.py')
-rwxr-xr-xtools/valgrind/drmemory_analyze.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/valgrind/drmemory_analyze.py b/tools/valgrind/drmemory_analyze.py
index 97d4635..7a82b46 100755
--- a/tools/valgrind/drmemory_analyze.py
+++ b/tools/valgrind/drmemory_analyze.py
@@ -178,10 +178,7 @@ class DrMemoryAnalyzer:
def main():
'''For testing only. The DrMemoryAnalyze class should be imported instead.'''
- parser = optparse.OptionParser("usage: %prog [options] <files to analyze>")
- parser.add_option("", "--source_dir",
- help="path to top of source tree for this build"
- "(used to normalize source paths in baseline)")
+ parser = optparse.OptionParser("usage: %prog <files to analyze>")
(options, args) = parser.parse_args()
if len(args) == 0: