mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-30 22:54:18 +00:00 
			
		
		
		
	Adding instrument_is_enabled function
As instrumentation can be enabled/disabled for a specfic workload execution, it is sometimes not enough to verify that an instrument has been installed for the run; one might need to check whether it is currently enabled.
This commit is contained in:
		| @@ -23,5 +23,13 @@ def instrument_is_installed(instrument): | ||||
|     return instrumentation.is_installed(instrument) | ||||
|  | ||||
|  | ||||
| def instrument_is_enabled(instrument): | ||||
|     """Returns ``True`` if the specified instrument is installed and is currently | ||||
|     enabled, and ``False`` other wise. The insturment maybe specified either | ||||
|     as a name or a subclass (or instance of subclass) of | ||||
|     :class:`wlauto.core.Instrument`.""" | ||||
|     return instrumentation.is_enabled(instrument) | ||||
|  | ||||
|  | ||||
| def clear_instrumentation(): | ||||
|     instrumentation.installed = [] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user