diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-05-01 15:26:20 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:51:17 +0000 |
commit | 5c2fb3f34462632b99331e2cc2d964c99fc1782b (patch) | |
tree | 16ee3edc412fcf7e3d20241ca8fb093d9774863d /tests/framework/instruments/SchedulerTimer.h | |
parent | cac13b1cfd593889271f8e2191be2039b8d88f36 (diff) | |
download | ComputeLibrary-5c2fb3f34462632b99331e2cc2d964c99fc1782b.tar.gz |
COMPMID-997: Add support for node's name in GraphAPI.
Change-Id: I0ca02e42807c1ad9afeffb7202a3556feb11442f
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/129701
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'tests/framework/instruments/SchedulerTimer.h')
-rw-r--r-- | tests/framework/instruments/SchedulerTimer.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/tests/framework/instruments/SchedulerTimer.h b/tests/framework/instruments/SchedulerTimer.h index ec282cc905..55d5f25b75 100644 --- a/tests/framework/instruments/SchedulerTimer.h +++ b/tests/framework/instruments/SchedulerTimer.h @@ -25,7 +25,9 @@ #define ARM_COMPUTE_TEST_SCHEDULER_TIMER #include "Instrument.h" +#include "arm_compute/graph/Workload.h" #include "arm_compute/runtime/Scheduler.h" + #include <list> namespace arm_compute @@ -50,8 +52,9 @@ public: SchedulerTimer &operator=(const SchedulerTimer &) = delete; std::string id() const override; + void test_start() override; void start() override; - void stop() override; + void test_stop() override; Instrument::MeasurementsMap measurements() const override; /** Kernel information */ @@ -59,13 +62,16 @@ public: { Instrument::MeasurementsMap measurements{}; /**< Time it took the kernel to run */ std::string name{}; /**< Kernel name */ + std::string prefix{}; /**< Kernel prefix */ }; private: - std::list<kernel_info> _kernels; - IScheduler *_real_scheduler; - Scheduler::Type _real_scheduler_type; - ScaleFactor _scale_factor; + std::list<kernel_info> _kernels; + IScheduler *_real_scheduler; + Scheduler::Type _real_scheduler_type; + std::function<decltype(graph::execute_task)> _real_graph_function; + ScaleFactor _scale_factor; + std::shared_ptr<IScheduler> _interceptor; }; } // namespace framework } // namespace test |