aboutsummaryrefslogtreecommitdiff
path: root/tests/framework/instruments/SchedulerTimer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/framework/instruments/SchedulerTimer.cpp')
-rw-r--r--tests/framework/instruments/SchedulerTimer.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/framework/instruments/SchedulerTimer.cpp b/tests/framework/instruments/SchedulerTimer.cpp
index 1b37b189dd..49d94d76eb 100644
--- a/tests/framework/instruments/SchedulerTimer.cpp
+++ b/tests/framework/instruments/SchedulerTimer.cpp
@@ -76,6 +76,19 @@ public:
_kernels.push_back(std::move(info));
}
+ void run_workloads(std::vector<Workload> &workloads) override
+ {
+ _timer.start();
+ _real_scheduler.run_workloads(workloads);
+ _timer.stop();
+
+ SchedulerTimer::kernel_info info;
+ info.name = "Unknown";
+ info.prefix = _prefix;
+ info.measurements = _timer.measurements();
+ _kernels.push_back(std::move(info));
+ }
+
private:
std::list<SchedulerTimer::kernel_info> &_kernels;
IScheduler &_real_scheduler;