summaryrefslogtreecommitdiff
path: root/testing/tools/safetynet_compare.py
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2017-09-07 12:16:05 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-08 14:52:53 +0000
commitf76741e65e9947b168f108842b715cdaeb74f4f7 (patch)
tree60427f47de73ec46c5280aafc37c459ba6a05557 /testing/tools/safetynet_compare.py
parentacee2a8af3b54cf8c3e3161440bda11df826dcf1 (diff)
downloadpdfium-f76741e65e9947b168f108842b715cdaeb74f4f7.tar.xz
Store raw json with run results when running safetynet_job.py.
Storing the machine-readable data is a good idea in general, in this case allowing us to create graphs with the historical runs. The json now also contains: - a version number in case there are future changes in the format - the date and time when the run started - which profiler was used - which commits were being compared - whether a comparison was run or not, that is, if the commit hashes for before and after differ Change-Id: I2913beaef30b90669ac4ffe60a656d4b69030588 Reviewed-on: https://pdfium-review.googlesource.com/13370 Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'testing/tools/safetynet_compare.py')
-rwxr-xr-xtesting/tools/safetynet_compare.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/testing/tools/safetynet_compare.py b/testing/tools/safetynet_compare.py
index d583312bab..ce0505f0a4 100755
--- a/testing/tools/safetynet_compare.py
+++ b/testing/tools/safetynet_compare.py
@@ -101,6 +101,7 @@ class CompareRun(object):
conclusions = self._DrawConclusions(before, after)
conclusions_dict = conclusions.GetOutputDict()
+ conclusions_dict.setdefault('metadata', {})['profiler'] = self.args.profiler
self._PrintConclusions(conclusions_dict)