MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / test_stop

Method test_stop

tests/framework/instruments/SchedulerTimer.cpp:234–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232
233template <bool output_timestamps>
234void SchedulerClock<output_timestamps>::test_stop()
235{
236 // Restore real scheduler
237 Scheduler::set(_real_scheduler_type);
238 _real_scheduler = nullptr;
239 _interceptor = nullptr;
240#ifdef ARM_COMPUTE_GRAPH_ENABLED
241 graph::TaskExecutor::get().execute_function = _real_graph_function;
242 _real_graph_function = nullptr;
243#endif /* ARM_COMPUTE_GRAPH_ENABLED */
244
245 // Restore schedulers
246 std::for_each(std::begin(_scheduler_users), std::end(_scheduler_users),
247 [&](ISchedulerUser *user)
248 {
249 if (user != nullptr)
250 {
251 user->restore_scheduler();
252 }
253 });
254}
255
256template <bool output_timestamps>
257Instrument::MeasurementsMap SchedulerClock<output_timestamps>::measurements() const

Callers

nothing calls this directly

Calls 3

for_eachFunction · 0.85
endFunction · 0.85
restore_schedulerMethod · 0.80

Tested by

no test coverage detected