mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 11:22:41 +01:00
wa/instruments: Refactor collectors to use Collector Inferface
Update the WA instruments which rely on the refactored devlib collectors to reflect the new API.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
import os
|
||||
|
||||
from devlib.trace.screencapture import ScreenCaptureCollector
|
||||
from devlib.collector.screencapture import ScreenCaptureCollector
|
||||
|
||||
from wa import Instrument, Parameter
|
||||
|
||||
@@ -47,8 +47,9 @@ class ScreenCaptureInstrument(Instrument):
|
||||
output_path = os.path.join(context.output_directory, "screen-capture")
|
||||
os.mkdir(output_path)
|
||||
self.collector = ScreenCaptureCollector(self.target,
|
||||
output_path,
|
||||
self.period)
|
||||
self.collector.set_output(output_path)
|
||||
self.collector.reset()
|
||||
|
||||
def start(self, context): # pylint: disable=unused-argument
|
||||
self.collector.start()
|
||||
|
Reference in New Issue
Block a user