mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-06-26 18:23:24 +01: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?')
|
||||
|
||||
def mark_start(self, context):
|
||||
self.collector.mark_start()
|
||||
if self.is_enabled:
|
||||
self.collector.mark_start()
|
||||
|
||||
def mark_stop(self, context):
|
||||
self.collector.mark_stop()
|
||||
if self.is_enabled:
|
||||
self.collector.mark_stop()
|
||||
|
Reference in New Issue
Block a user