diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2017-09-07 12:16:05 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-09-08 14:52:53 +0000 |
commit | f76741e65e9947b168f108842b715cdaeb74f4f7 (patch) | |
tree | 60427f47de73ec46c5280aafc37c459ba6a05557 /testing/tools/safetynet_conclusions.py | |
parent | acee2a8af3b54cf8c3e3161440bda11df826dcf1 (diff) | |
download | pdfium-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_conclusions.py')
-rw-r--r-- | testing/tools/safetynet_conclusions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testing/tools/safetynet_conclusions.py b/testing/tools/safetynet_conclusions.py index 3d8758764c..fdbc10df14 100644 --- a/testing/tools/safetynet_conclusions.py +++ b/testing/tools/safetynet_conclusions.py @@ -124,6 +124,7 @@ class ComparisonConclusions(object): Returns: A serializable dict with the format illustrated below: { + "version": 1, "params": { "threshold": 0.02 }, @@ -176,6 +177,7 @@ class ComparisonConclusions(object): } """ output_dict = {} + output_dict['version'] = 1 output_dict['params'] = {'threshold': self.threshold_significant} output_dict['summary'] = self.summary.GetOutputDict() output_dict['comparison_by_case'] = { |