From 06ac9c95c25289e84de7b13ae6264ce5ecb3b1a5 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 21 Jul 2017 11:55:03 -0700 Subject: Clarify --build-dir help info in safetynet_measure.py. Change-Id: I35423437015ad9057ed862ab630c9a2f403a8e1f Reviewed-on: https://pdfium-review.googlesource.com/8710 Reviewed-by: Henrique Nakashima Commit-Queue: Lei Zhang --- testing/tools/safetynet_measure.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/testing/tools/safetynet_measure.py b/testing/tools/safetynet_measure.py index 32fd7baa88..67c07349e3 100755 --- a/testing/tools/safetynet_measure.py +++ b/testing/tools/safetynet_measure.py @@ -18,13 +18,14 @@ import sys CALLGRIND_PROFILER = 'callgrind' PERFSTAT_PROFILER = 'perfstat' +PDFIUM_TEST = 'pdfium_test' class PerformanceRun(object): """A single measurement of a test case.""" def __init__(self, args): self.args = args - self.pdfium_test_path = os.path.join(self.args.build_dir, 'pdfium_test') + self.pdfium_test_path = os.path.join(self.args.build_dir, PDFIUM_TEST) def _CheckTools(self): """Returns whether the tool file paths are sane.""" @@ -122,7 +123,8 @@ def main(): parser.add_argument('pdf_path', help='test case to measure load and rendering time') parser.add_argument('--build-dir', default=os.path.join('out', 'Release'), - help='relative path from the base source directory') + help='relative path to the build directory with ' + '%s' % PDFIUM_TEST) parser.add_argument('--profiler', default=CALLGRIND_PROFILER, help='which profiler to use. Supports callgrind and ' 'perfstat for now.') -- cgit v1.2.3