mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00:00
instruments/trace-cmd: Allow setting the interval for record mode
Add a 'record_interval' parameter for the instrument that will be passed to the collector. This parameter allows setting the interval for filesystem writes when trace-cmd is running in record mode. The default is 1000 (us, ie. 1 ms) which is the same as the default in trace-cmd. Signed-off-by: Kajetan Puchalski <kajetan.puchalski@arm.com>
This commit is contained in:
parent
96e361d4b0
commit
0bc0f604b4
@ -158,6 +158,13 @@ class TraceCmdInstrument(Instrument):
|
||||
description="""
|
||||
The mode that trace-cmd will be started in.
|
||||
For more details, consult the trace-cmd documentation.
|
||||
"""),
|
||||
Parameter('record_interval', kind=int, default=1000,
|
||||
description="""
|
||||
The interval for filesystem writes in record mode, in microseconds.
|
||||
The default is set to 1000 (1 ms).
|
||||
This is the time each recording process will sleep before waking up to
|
||||
record any new data that was written to the ring buffer.
|
||||
""")
|
||||
]
|
||||
|
||||
@ -181,6 +188,7 @@ class TraceCmdInstrument(Instrument):
|
||||
strict=False,
|
||||
report_on_target=False,
|
||||
trace_cmd_mode=self.trace_cmd_mode,
|
||||
record_interval=self.record_interval,
|
||||
)
|
||||
if self.report and self.report_on_target:
|
||||
collector_params['autoreport'] = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user