mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-04 04:12:42 +01:00
wa: Rename Instrumentation
to Instruments
To be maintain a consistent naming scheme, rename all instances of `Instrumentation` to `Instruments`
This commit is contained in:
@@ -557,7 +557,7 @@ class MetaConfiguration(Configuration):
|
||||
'wa.commands',
|
||||
'wa.framework.getters',
|
||||
'wa.framework.target.descriptor',
|
||||
'wa.instrumentation',
|
||||
'wa.instruments',
|
||||
'wa.output_processors',
|
||||
'wa.workloads',
|
||||
]
|
||||
|
@@ -23,7 +23,7 @@ def _format_yaml_comment(param, short_description=False):
|
||||
|
||||
def _format_instruments(output):
|
||||
plugin_cache = PluginCache()
|
||||
output.write("instrumentation:\n")
|
||||
output.write("instruments:\n")
|
||||
for plugin in DEFAULT_INSTRUMENTS:
|
||||
plugin_cls = plugin_cache.loader.get_plugin_class(plugin)
|
||||
output.writelines(_format_yaml_comment(plugin_cls, short_description=True))
|
||||
|
@@ -208,10 +208,10 @@ def _load_file(filepath, error_name):
|
||||
|
||||
def merge_augmentations(raw):
|
||||
"""
|
||||
Since, from configuration perspective, output processors and instrumens are
|
||||
Since, from configuration perspective, output processors and instruments are
|
||||
handled identically, the configuration entries are now interchangeable. E.g. it is
|
||||
now valid to specify a output processor in instrumentation list. This is to make things
|
||||
eassier for the users, as, from their perspective, the distinction is somewhat arbitrary.
|
||||
now valid to specify a output processor in an instruments list. This is to make things
|
||||
easier for the users, as, from their perspective, the distinction is somewhat arbitrary.
|
||||
|
||||
For backwards compatibility, both entries are still valid, and this
|
||||
function merges them together into a single "augmentations" set, ensuring
|
||||
@@ -265,7 +265,7 @@ def _construct_valid_entry(raw, seen_ids, prefix, jobs_config):
|
||||
else:
|
||||
workload_entry['id'] = raw.pop('id')
|
||||
|
||||
# Process instrumentation
|
||||
# Process instruments
|
||||
merge_augmentations(raw)
|
||||
|
||||
# Validate all workload_entry
|
||||
|
Reference in New Issue
Block a user