diff options
author | Zhizhou Yang <zhizhouy@google.com> | 2019-03-14 13:25:06 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-03-15 16:48:42 -0700 |
commit | 1a5a3163b7fe75e053282e7d67148c5f4e409414 (patch) | |
tree | f2c94f394dcc3ec171a41b492ba533f4121a1be0 /crosperf/settings_factory.py | |
parent | 6512f0baf7a540267b735accac77cf6903a63306 (diff) | |
download | toolchain-utils-1a5a3163b7fe75e053282e7d67148c5f4e409414.tar.gz |
crosperf: Feature to ignore min and max value in results
This patch provides an option for user to ignore min and max value in
the results when generating report. User can use this feature by
specifying `ignore_min_max: True` (which by default is False) in
experiment file.
When values count in a single test is smaller than 3, we automatically
ignore this option for it, and print out a warning.
BUG=chromium:938758
TEST=Tested with examples in general/cwp mode report generation. Passed
all unit tests.
Change-Id: I36a4c4d99836c201cdd2f2f9f2a4b1a4ffdaa47d
Reviewed-on: https://chromium-review.googlesource.com/1521054
Commit-Ready: Zhizhou Yang <zhizhouy@google.com>
Tested-by: Zhizhou Yang <zhizhouy@google.com>
Reviewed-by: Zhizhou Yang <zhizhouy@google.com>
Diffstat (limited to 'crosperf/settings_factory.py')
-rw-r--r-- | crosperf/settings_factory.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crosperf/settings_factory.py b/crosperf/settings_factory.py index 8bc52a45..82956501 100644 --- a/crosperf/settings_factory.py +++ b/crosperf/settings_factory.py @@ -310,6 +310,13 @@ class GlobalSettings(Settings): 'benchmarks. ASLR is disabled by default', required=False, default=False)) + self.AddField( + BooleanField( + 'ignore_min_max', + description='When doing math for the raw results, ' + 'ignore min and max values to reduce noise.', + required=False, + default=False)) class SettingsFactory(object): |