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/Framework.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/framework/Framework.cpp') diff --git a/tests/framework/Framework.cpp b/tests/framework/Framework.cpp index 238b5ab2c0..81e16c8fb7 100644 --- a/tests/framework/Framework.cpp +++ b/tests/framework/Framework.cpp @@ -59,6 +59,11 @@ Framework::Framework() _available_instruments.emplace(std::pair(InstrumentType::OPENCL_TIMER, ScaleFactor::TIME_US), Instrument::make_instrument); _available_instruments.emplace(std::pair(InstrumentType::OPENCL_TIMER, ScaleFactor::TIME_MS), Instrument::make_instrument); _available_instruments.emplace(std::pair(InstrumentType::OPENCL_TIMER, ScaleFactor::TIME_S), Instrument::make_instrument); + _available_instruments.emplace(std::pair(InstrumentType::OPENCL_MEMORY_USAGE, ScaleFactor::NONE), Instrument::make_instrument); + _available_instruments.emplace(std::pair(InstrumentType::OPENCL_MEMORY_USAGE, ScaleFactor::SCALE_1K), + Instrument::make_instrument); + _available_instruments.emplace(std::pair(InstrumentType::OPENCL_MEMORY_USAGE, ScaleFactor::SCALE_1M), + Instrument::make_instrument); #endif /* ARM_COMPUTE_CL */ } -- cgit v1.2.1