From 277618302d0f131eac0b6ac2015dd3eb09aa6ff9 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Sun, 20 Mar 2022 21:52:17 +0000 Subject: IVGCVSW-6706 Move headers to profiling/client/include !android-nn-driver:7337 Change-Id: Ide401623829cc99fb9b51e9bbce3482ce706a8dd Signed-off-by: Jim Flynn --- src/profiling/CounterIdMap.hpp | 51 ------------------------------------------ 1 file changed, 51 deletions(-) delete mode 100644 src/profiling/CounterIdMap.hpp (limited to 'src/profiling/CounterIdMap.hpp') diff --git a/src/profiling/CounterIdMap.hpp b/src/profiling/CounterIdMap.hpp deleted file mode 100644 index cce7184c46..0000000000 --- a/src/profiling/CounterIdMap.hpp +++ /dev/null @@ -1,51 +0,0 @@ -// -// Copyright © 2020 Arm Ltd. All rights reserved. -// SPDX-License-Identifier: MIT -// -#pragma once - -#include -#include - -namespace arm -{ -namespace pipe -{ - -class ICounterMappings -{ -public: - virtual uint16_t GetGlobalId(uint16_t backendCounterId, const std::string& backendId) const = 0; - virtual const std::pair& GetBackendId(uint16_t globalCounterId) const = 0; - virtual ~ICounterMappings() {} -}; - -class IRegisterCounterMapping -{ -public: - virtual void RegisterMapping(uint16_t globalCounterId, - uint16_t backendCounterId, - const std::string& backendId) = 0; - virtual void Reset() = 0; - virtual ~IRegisterCounterMapping() {} -}; - -class CounterIdMap : public ICounterMappings, public IRegisterCounterMapping -{ - -public: - CounterIdMap() = default; - virtual ~CounterIdMap() {} - void RegisterMapping(uint16_t globalCounterId, - uint16_t backendCounterId, - const std::string& backendId) override; - void Reset() override; - uint16_t GetGlobalId(uint16_t backendCounterId, const std::string& backendId) const override; - const std::pair& GetBackendId(uint16_t globalCounterId) const override; -private: - std::map> m_GlobalCounterIdMap; - std::map, uint16_t> m_BackendCounterIdMap; -}; - -} // namespace pipe -} // namespace arm -- cgit v1.2.1