Python: module telemetry.benchmark_runner

telemetry.benchmark_runner | index telemetry/benchmark_runner.py

`Parses the command line, discovers the appropriate benchmarks, and runs them.
Handles benchmark configuration, but all the logic for
actually running the benchmark is in Benchmark and PageRunner.`

Modules
`` |  |
telemetry.benchmark telemetry.internal.util.binary_manager telemetry.internal.browser.browser_finder telemetry.internal.browser.browser_options | telemetry.internal.util.command_line telemetry.decorators telemetry.core.discover hashlib | inspect json logging os | telemetry.project_config telemetry.internal.util.ps_util sys

Classes
`` |  | telemetry.internal.util.command_line.OptparseCommand(telemetry.internal.util.command_line.Command) Help List Run
class Help(telemetry.internal.util.command_line.OptparseCommand)
`` | `Display help information about a command`
| Method resolution order: Help telemetry.internal.util.command_line.OptparseCommand telemetry.internal.util.command_line.Command telemetry.internal.util.command_line.ArgumentHandlerMixIn __builtin__.object Methods defined here: Run(self, args) Data and other attributes defined here: usage = '[command]' Class methods inherited from telemetry.internal.util.command_line.OptparseCommand: AddCommandLineArgs(cls, parser, environment) from __builtin__.type CreateParser(cls) from __builtin__.type ProcessCommandLineArgs(cls, parser, args, environment) from __builtin__.type main(cls, args=None) from __builtin__.type `Main method to run this command as a standalone script.` Class methods inherited from telemetry.internal.util.command_line.Command: Description(cls) from __builtin__.type Name(cls) from __builtin__.type Data descriptors inherited from telemetry.internal.util.command_line.ArgumentHandlerMixIn: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)`
class List(telemetry.internal.util.command_line.OptparseCommand)
`` | `Lists the available benchmarks`
| Method resolution order: List telemetry.internal.util.command_line.OptparseCommand telemetry.internal.util.command_line.Command telemetry.internal.util.command_line.ArgumentHandlerMixIn __builtin__.object Methods defined here: Run(self, args) Class methods defined here: AddCommandLineArgs(cls, parser, _) from __builtin__.type CreateParser(cls) from __builtin__.type ProcessCommandLineArgs(cls, parser, args, environment) from __builtin__.type Data and other attributes defined here: usage = '[benchmark_name] [<options>]' Class methods inherited from telemetry.internal.util.command_line.OptparseCommand: main(cls, args=None) from __builtin__.type `Main method to run this command as a standalone script.` Class methods inherited from telemetry.internal.util.command_line.Command: Description(cls) from __builtin__.type Name(cls) from __builtin__.type Data descriptors inherited from telemetry.internal.util.command_line.ArgumentHandlerMixIn: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)`
class Run(telemetry.internal.util.command_line.OptparseCommand)
`` | `Run one or more benchmarks (default)`
| Method resolution order: Run telemetry.internal.util.command_line.OptparseCommand telemetry.internal.util.command_line.Command telemetry.internal.util.command_line.ArgumentHandlerMixIn __builtin__.object Methods defined here: Run(self, args) Class methods defined here: AddCommandLineArgs(cls, parser, environment) from __builtin__.type CreateParser(cls) from __builtin__.type ProcessCommandLineArgs(cls, parser, args, environment) from __builtin__.type Data and other attributes defined here: usage = 'benchmark_name [page_set] [<options>]' Class methods inherited from telemetry.internal.util.command_line.OptparseCommand: main(cls, args=None) from __builtin__.type `Main method to run this command as a standalone script.` Class methods inherited from telemetry.internal.util.command_line.Command: Description(cls) from __builtin__.type Name(cls) from __builtin__.type Data descriptors inherited from telemetry.internal.util.command_line.ArgumentHandlerMixIn: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)`

Functions
`` |  | GetBenchmarkByName(name, environment) PrintBenchmarkList(benchmarks, possible_browser, output_pipe=<open file '<stdout>', mode 'w'>) `Print benchmarks that are not filtered in the same order of benchmarks in the |benchmarks| list. Args: benchmarks: the list of benchmarks to be printed (in the same order of the list). possible_browser: the possible_browser instance that's used for checking which benchmarks are enabled. output_pipe: the stream in which benchmarks are printed on.` main(environment)