mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 15:12:25 +00:00 
			
		
		
		
	instruments/trace-cmd: Only insert trace markers if enabled
Check to see if the instrument is enabled before adding start and stop trace markers.
This commit is contained in:
		| @@ -222,7 +222,9 @@ class TraceCmdInstrument(Instrument): | |||||||
|             raise InstrumentError('trace-cmd is not in PATH; is it installed?') |             raise InstrumentError('trace-cmd is not in PATH; is it installed?') | ||||||
|  |  | ||||||
|     def mark_start(self, context): |     def mark_start(self, context): | ||||||
|  |         if self.is_enabled: | ||||||
|             self.collector.mark_start() |             self.collector.mark_start() | ||||||
|  |  | ||||||
|     def mark_stop(self, context): |     def mark_stop(self, context): | ||||||
|  |         if self.is_enabled: | ||||||
|             self.collector.mark_stop() |             self.collector.mark_stop() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user