wlauto.instrumentation.perf package

Module contents

class wlauto.instrumentation.perf.PerfInstrument(device, **kwargs)[source]

Bases: wlauto.core.instrumentation.Instrument

aliases = AC([])
artifacts = AC([])
core_modules = []
description = "\n Perf is a Linux profiling with performance counters.\n\n Performance counters are CPU hardware registers that count hardware events\n such as instructions executed, cache-misses suffered, or branches\n mispredicted. They form a basis for profiling applications to trace dynamic\n control flow and identify hotspots.\n\n pref accepts options and events. If no option is given the default '-a' is\n used. For events, the default events are migrations and cs. They both can\n be specified in the config file.\n\n Events must be provided as a list that contains them and they will look like\n this ::\n\n perf_events = ['migrations', 'cs']\n\n Events can be obtained by typing the following in the command line on the\n device ::\n\n perf list\n\n Whereas options, they can be provided as a single string as following ::\n\n perf_options = '-a -i'\n\n Options can be obtained by running the following in the command line ::\n\n man perf-record\n "
finalize(*args, **kwargs)
initialize(*args, **kwargs)
kind = 'instrument'
name = 'perf'
on_run_init(context)[source]
parameters = AC(["Param({'kind': <type 'list'>, 'mandatory': None, 'name': 'modules', 'constraint': None, 'default': None, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function list_of_strs>, 'mandatory': None, 'name': 'events', 'constraint': (<function <lambda>>, 'must not be empty.'), 'default': ['migrations', 'cs'], 'allowed_values': None, 'global_alias': 'perf_events', 'override': False})", "Param({'kind': <function list_or_string>, 'mandatory': None, 'name': 'optionstring', 'constraint': None, 'default': '-a', 'allowed_values': None, 'global_alias': 'perf_options', 'override': False})", "Param({'kind': <function list_of_strs>, 'mandatory': None, 'name': 'labels', 'constraint': None, 'default': None, 'allowed_values': None, 'global_alias': 'perf_labels', 'override': False})", "Param({'kind': <function boolean>, 'mandatory': None, 'name': 'force_install', 'constraint': None, 'default': False, 'allowed_values': None, 'global_alias': None, 'override': False})"])
setup(context)[source]
start(context)[source]
stop(context)[source]
teardown(context)[source]
update_result(context)[source]
validate(*args, **kwargs)