summaryrefslogtreecommitdiff
path: root/testing/tools/safetynet_measure.py
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-07-21 11:55:03 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-07-21 20:53:26 +0000
commit06ac9c95c25289e84de7b13ae6264ce5ecb3b1a5 (patch)
treec493968d4a49514af2e56b9f7bfc0ce99c2c556e /testing/tools/safetynet_measure.py
parentd0856ba49c2bdcb288e0976d2162db17210a66df (diff)
downloadpdfium-06ac9c95c25289e84de7b13ae6264ce5ecb3b1a5.tar.xz
Clarify --build-dir help info in safetynet_measure.py.
Change-Id: I35423437015ad9057ed862ab630c9a2f403a8e1f Reviewed-on: https://pdfium-review.googlesource.com/8710 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'testing/tools/safetynet_measure.py')
-rwxr-xr-xtesting/tools/safetynet_measure.py6
1 files 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.')