From 35aa6a36e7ef9302efd554aac9b84153ad7c6a9e Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Mon, 23 Apr 2018 16:12:12 +0100 Subject: COMPMID-1077 Add OpenCL Memory Usage instrument Change-Id: Ic5a24f22bec9d6ca71486097f6ad70fb0d83da2b Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/128674 Reviewed-by: Georgios Pinitas Tested-by: Jenkins --- tests/framework/instruments/Instruments.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/framework/instruments/Instruments.cpp') diff --git a/tests/framework/instruments/Instruments.cpp b/tests/framework/instruments/Instruments.cpp index 64e87f9cc5..6d65b014e3 100644 --- a/tests/framework/instruments/Instruments.cpp +++ b/tests/framework/instruments/Instruments.cpp @@ -59,6 +59,9 @@ InstrumentsDescription instrument_type_from_name(const std::string &name) { "opencl_timer_us", std::pair(InstrumentType::OPENCL_TIMER, ScaleFactor::TIME_US) }, { "opencl_timer_ms", std::pair(InstrumentType::OPENCL_TIMER, ScaleFactor::TIME_MS) }, { "opencl_timer_s", std::pair(InstrumentType::OPENCL_TIMER, ScaleFactor::TIME_S) }, + { "opencl_memory_usage", std::pair(InstrumentType::OPENCL_MEMORY_USAGE, ScaleFactor::NONE) }, + { "opencl_memory_usage_k", std::pair(InstrumentType::OPENCL_MEMORY_USAGE, ScaleFactor::SCALE_1K) }, + { "opencl_memory_usage_m", std::pair(InstrumentType::OPENCL_MEMORY_USAGE, ScaleFactor::SCALE_1M) }, }; try -- cgit v1.2.1