aboutsummaryrefslogtreecommitdiff
path: root/tests/framework/instruments/Instruments.h
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2017-11-09 15:52:00 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit6e4334962913a4b4d88d3d2b9d76ef2b7850a56c (patch)
treec04a97710320f0650db3c68dc722474a0abf03ea /tests/framework/instruments/Instruments.h
parent9c45f56439f5a4aef68901dfe4b7b57d2a7ce85e (diff)
downloadComputeLibrary-6e4334962913a4b4d88d3d2b9d76ef2b7850a56c.tar.gz
COMPMID-663 Adding instrument to return timestamps of clGetEventProfilingInfo
Change-Id: I1037054615593205f07e25fb9b16fecd13407c2c Reviewed-on: http://mpd-gerrit.cambridge.arm.com/95142 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'tests/framework/instruments/Instruments.h')
-rw-r--r--tests/framework/instruments/Instruments.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/framework/instruments/Instruments.h b/tests/framework/instruments/Instruments.h
index df6aa62ec7..ffe7cb681d 100644
--- a/tests/framework/instruments/Instruments.h
+++ b/tests/framework/instruments/Instruments.h
@@ -25,6 +25,7 @@
#define ARM_COMPUTE_TEST_INSTRUMENTS
#include "MaliCounter.h"
+#include "OpenCLTimer.h"
#include "PMUCounter.h"
#include "WallClockTimer.h"
@@ -46,6 +47,7 @@ enum class InstrumentType : unsigned int
PMU_CYCLE_COUNTER = 0x0201,
PMU_INSTRUCTION_COUNTER = 0x0202,
MALI = 0x0300,
+ OPENCL_TIMER = 0x0400,
};
InstrumentType instrument_type_from_name(const std::string &name);
@@ -77,6 +79,9 @@ inline ::std::stringstream &operator<<(::std::stringstream &stream, InstrumentTy
case InstrumentType::MALI:
stream << "MALI";
break;
+ case InstrumentType::OPENCL_TIMER:
+ stream << "OPENCL_TIMER";
+ break;
case InstrumentType::ALL:
stream << "ALL";
break;