diff options
author | cmtice <cmtice@google.com> | 2014-03-11 13:38:07 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-03-14 19:32:33 +0000 |
commit | 139092449a545d4d87c06af3a6d8f3d71e42e927 (patch) | |
tree | ede91dc3f94b8062ff60274bd57fca32cf9e8b41 /crosperf/settings_factory.py | |
parent | 2317decf0e3f62297fc09a712bdf7fa253d560f3 (diff) | |
download | toolchain-utils-139092449a545d4d87c06af3a6d8f3d71e42e927.tar.gz |
Add --logging_level option to crosperf.
Add --logging_level={verbose, average, quiet} option to crosperf,
optionally reducing the amount of logging output. "verbose" gives
the same output Crosperf always gave; "quiet" gives minimal output, and
"average" is in the middle. The default for now is "verbose". Doing this
also involved adding logging levels to the command_executer, and to
image_chromeos (again, with the default being "verbose").
BUG=None
TEST=Tested all three levels of logging, with and without having to
reimage the DUT. It all worked properly.
Change-Id: Icf8c9a6831fe25202adcb624c6c7e1d1a7ac25a5
Reviewed-on: https://chrome-internal-review.googlesource.com/156883
Reviewed-by: Caroline Tice <cmtice@google.com>
Commit-Queue: Caroline Tice <cmtice@google.com>
Tested-by: Caroline Tice <cmtice@google.com>
Diffstat (limited to 'crosperf/settings_factory.py')
-rw-r--r-- | crosperf/settings_factory.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crosperf/settings_factory.py b/crosperf/settings_factory.py index 6be34816..b827cc4d 100644 --- a/crosperf/settings_factory.py +++ b/crosperf/settings_factory.py @@ -42,6 +42,9 @@ class BenchmarkSettings(Settings): "command record or stat followed by arguments.")) self.AddField(TextField("suite", default="pyauto", description="The type of the benchmark")) + self.AddField(TextField("logging_level", default="verbose", + description="The level of logging desired. " + "Options are 'quiet', 'average', and 'verbose'.")) self.AddField(BooleanField("use_test_that", default=True, description="Whether to use the" " new test_that script for running the test.")) @@ -127,6 +130,9 @@ class GlobalSettings(Settings): "contains a src/scripts directory. Defaults to " "the chromeos checkout which contains the " "chromeos_image.")) + self.AddField(TextField("logging_level", default="verbose", + description="The level of logging desired. " + "Options are 'quiet', 'average', and 'verbose'.")) self.AddField(BooleanField("key_results_only", default=True, description="Whether only show the key results" "of pyautoperf")) |