diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2018-04-23 16:12:12 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:49:54 +0000 |
commit | 35aa6a36e7ef9302efd554aac9b84153ad7c6a9e (patch) | |
tree | 350e676c6d5a08573dc297a7558f6a72f3624ac2 /tests/framework/instruments/Instruments.cpp | |
parent | 9fb0cac961f70d1937c5fa3eafeaee1385c89768 (diff) | |
download | ComputeLibrary-35aa6a36e7ef9302efd554aac9b84153ad7c6a9e.tar.gz |
COMPMID-1077 Add OpenCL Memory Usage instrument
Change-Id: Ic5a24f22bec9d6ca71486097f6ad70fb0d83da2b
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/128674
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/framework/instruments/Instruments.cpp')
-rw-r--r-- | tests/framework/instruments/Instruments.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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, ScaleFactor>(InstrumentType::OPENCL_TIMER, ScaleFactor::TIME_US) }, { "opencl_timer_ms", std::pair<InstrumentType, ScaleFactor>(InstrumentType::OPENCL_TIMER, ScaleFactor::TIME_MS) }, { "opencl_timer_s", std::pair<InstrumentType, ScaleFactor>(InstrumentType::OPENCL_TIMER, ScaleFactor::TIME_S) }, + { "opencl_memory_usage", std::pair<InstrumentType, ScaleFactor>(InstrumentType::OPENCL_MEMORY_USAGE, ScaleFactor::NONE) }, + { "opencl_memory_usage_k", std::pair<InstrumentType, ScaleFactor>(InstrumentType::OPENCL_MEMORY_USAGE, ScaleFactor::SCALE_1K) }, + { "opencl_memory_usage_m", std::pair<InstrumentType, ScaleFactor>(InstrumentType::OPENCL_MEMORY_USAGE, ScaleFactor::SCALE_1M) }, }; try |