From 72f4ae5a53fe24226ff16ed9c339171887d74874 Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Wed, 7 Nov 2018 17:33:54 +0000 Subject: COMPMID-1777: Add option to make instruments output timestamps instead of duration Change-Id: Iafc1d6cd8003de64a3439ad807f4002036c73a73 --- tests/framework/instruments/Instruments.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/framework/instruments/Instruments.cpp') diff --git a/tests/framework/instruments/Instruments.cpp b/tests/framework/instruments/Instruments.cpp index 6d65b014e3..2288124a21 100644 --- a/tests/framework/instruments/Instruments.cpp +++ b/tests/framework/instruments/Instruments.cpp @@ -44,6 +44,12 @@ InstrumentsDescription instrument_type_from_name(const std::string &name) { "wall_clock_timer", std::pair(InstrumentType::WALL_CLOCK_TIMER, ScaleFactor::NONE) }, { "wall_clock_timer_ms", std::pair(InstrumentType::WALL_CLOCK_TIMER, ScaleFactor::TIME_MS) }, { "wall_clock_timer_s", std::pair(InstrumentType::WALL_CLOCK_TIMER, ScaleFactor::TIME_S) }, + { "wall_clock_timestamps", std::pair(InstrumentType::WALL_CLOCK_TIMESTAMPS, ScaleFactor::NONE) }, + { "wall_clock_timestamps_ms", std::pair(InstrumentType::WALL_CLOCK_TIMESTAMPS, ScaleFactor::TIME_MS) }, + { "wall_clock_timestamps_s", std::pair(InstrumentType::WALL_CLOCK_TIMESTAMPS, ScaleFactor::TIME_S) }, + { "scheduler_timestamps", std::pair(InstrumentType::SCHEDULER_TIMESTAMPS, ScaleFactor::NONE) }, + { "scheduler_timestamps_ms", std::pair(InstrumentType::SCHEDULER_TIMESTAMPS, ScaleFactor::TIME_MS) }, + { "scheduler_timestamps_s", std::pair(InstrumentType::SCHEDULER_TIMESTAMPS, ScaleFactor::TIME_S) }, { "scheduler_timer", std::pair(InstrumentType::SCHEDULER_TIMER, ScaleFactor::NONE) }, { "scheduler_timer_ms", std::pair(InstrumentType::SCHEDULER_TIMER, ScaleFactor::TIME_MS) }, { "scheduler_timer_s", std::pair(InstrumentType::SCHEDULER_TIMER, ScaleFactor::TIME_S) }, @@ -55,6 +61,10 @@ InstrumentsDescription instrument_type_from_name(const std::string &name) { "mali", std::pair(InstrumentType::MALI, ScaleFactor::NONE) }, { "mali_k", std::pair(InstrumentType::MALI, ScaleFactor::SCALE_1K) }, { "mali_m", std::pair(InstrumentType::MALI, ScaleFactor::SCALE_1M) }, + { "opencl_timestamps", std::pair(InstrumentType::OPENCL_TIMESTAMPS, ScaleFactor::NONE) }, + { "opencl_timestamps_us", std::pair(InstrumentType::OPENCL_TIMESTAMPS, ScaleFactor::TIME_US) }, + { "opencl_timestamps_ms", std::pair(InstrumentType::OPENCL_TIMESTAMPS, ScaleFactor::TIME_MS) }, + { "opencl_timestamps_s", std::pair(InstrumentType::OPENCL_TIMESTAMPS, ScaleFactor::TIME_S) }, { "opencl_timer", std::pair(InstrumentType::OPENCL_TIMER, ScaleFactor::NONE) }, { "opencl_timer_us", std::pair(InstrumentType::OPENCL_TIMER, ScaleFactor::TIME_US) }, { "opencl_timer_ms", std::pair(InstrumentType::OPENCL_TIMER, ScaleFactor::TIME_MS) }, -- cgit v1.2.1