Commit 3ddaa843 authored by Mikhail Khokhlov's avatar Mikhail Khokhlov Committed by Commit Bot

[tools/perf] Add benchmarks to the experiment

The following benchmarks are added:
- jetstream2, uses the new AddMeasurement API
- octane, uses the old AddHistogram API (but values are also recorded
  as histograms)
- blink_perf.css, a non-press benchmark also using AddMeasurement.

output formats for these will now be handled by results processor.

Bug: 981349
Change-Id: I08c3cf9c878a32389fa81912020922ff652593f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1863293Reviewed-by: default avatarJuan Antonio Navarro Pérez <perezju@chromium.org>
Commit-Queue: Mikhail Khokhlov <khokhlov@google.com>
Cr-Commit-Position: refs/heads/master@{#706059}
parent 109bbed9
...@@ -132,14 +132,15 @@ def ProcessOptions(options, standalone=False): ...@@ -132,14 +132,15 @@ def ProcessOptions(options, standalone=False):
chosen_formats = ['html'] chosen_formats = ['html']
# The following is a temporary hack to switch on native handling of output # The following is a temporary hack to switch on native handling of output
# formats for two benchmarks. This is an experiment to make sure # formats for several benchmarks. This is an experiment to make sure
# that Results Processor is ready to handle output on all platforms. # that Results Processor is ready to handle output on all platforms.
# TODO(crbug.com/981349): Remove this after experiment is finished (i.e. # TODO(crbug.com/981349): Remove this after experiment is finished (i.e.
# all formats are considered HANDLED_NATIVELY). # all formats are considered HANDLED_NATIVELY).
force_native = False force_native = False
if 'positional_args' in options.__dict__ and options.positional_args: if 'positional_args' in options.__dict__ and options.positional_args:
benchmark_name = options.positional_args[0] benchmark_name = options.positional_args[0]
if benchmark_name in ['power.desktop', 'startup.mobile']: if benchmark_name in ['power.desktop', 'startup.mobile', 'jetstream2',
'octane', 'blink_perf.css']:
force_native = True force_native = True
logging.warning('Force native handling of output formats for %s', logging.warning('Force native handling of output formats for %s',
benchmark_name) benchmark_name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment