mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-07-25 00:09:45 +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?')
|
raise InstrumentError('trace-cmd is not in PATH; is it installed?')
|
||||||
|
|
||||||
def mark_start(self, context):
|
def mark_start(self, context):
|
||||||
self.collector.mark_start()
|
if self.is_enabled:
|
||||||
|
self.collector.mark_start()
|
||||||
|
|
||||||
def mark_stop(self, context):
|
def mark_stop(self, context):
|
||||||
self.collector.mark_stop()
|
if self.is_enabled:
|
||||||
|
self.collector.mark_stop()
|
||||||
|
Reference in New Issue
Block a user