diff options
author | Jim Flynn <jim.flynn@arm.com> | 2022-03-20 21:52:17 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2022-03-23 20:32:03 +0000 |
commit | 277618302d0f131eac0b6ac2015dd3eb09aa6ff9 (patch) | |
tree | e468fa1362640484b508812596fb5c1b62186882 /src/profiling/IProfilingService.hpp | |
parent | a3bc0b4976395226c0fa0898b26098c4534edbdb (diff) | |
download | armnn-277618302d0f131eac0b6ac2015dd3eb09aa6ff9.tar.gz |
IVGCVSW-6706 Move headers to profiling/client/include
!android-nn-driver:7337
Change-Id: Ide401623829cc99fb9b51e9bbce3482ce706a8dd
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/IProfilingService.hpp')
-rw-r--r-- | src/profiling/IProfilingService.hpp | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/src/profiling/IProfilingService.hpp b/src/profiling/IProfilingService.hpp deleted file mode 100644 index 353059aec3..0000000000 --- a/src/profiling/IProfilingService.hpp +++ /dev/null @@ -1,81 +0,0 @@ -// -// Copyright © 2020 Arm Ltd and Contributors. All rights reserved. -// SPDX-License-Identifier: MIT -// - -#pragma once - -#include "CounterIdMap.hpp" -#include "Holder.hpp" -#include "ICounterValues.hpp" -#include "IInitialiseProfilingService.hpp" -#include "IProfilingServiceStatus.hpp" -#include "ISendCounterPacket.hpp" -#include "IReportStructure.hpp" -#include "ProfilingState.hpp" - -#include <armnn/backends/profiling/IBackendProfilingContext.hpp> -#include <armnn/profiling/ProfilingOptions.hpp> - -#include <common/include/ICounterRegistry.hpp> -#include <common/include/Optional.hpp> -#include <common/include/ProfilingGuidGenerator.hpp> - - -namespace arm -{ - -namespace pipe -{ - -class IProfilingService : public IProfilingGuidGenerator, - public IProfilingServiceStatus, - public IReadWriteCounterValues -{ -public: - static std::unique_ptr<IProfilingService> CreateProfilingService( - uint16_t maxGlobalCounterId, - IInitialiseProfilingService& initialiser, - const std::string& softwareInfo, - const std::string& softwareVersion, - const std::string& hardwareVersion, - arm::pipe::Optional<IReportStructure&> reportStructure = arm::pipe::EmptyOptional()); - virtual ~IProfilingService() {}; - virtual std::unique_ptr<ISendTimelinePacket> GetSendTimelinePacket() const = 0; - virtual const ICounterMappings& GetCounterMappings() const = 0; - virtual ISendCounterPacket& GetSendCounterPacket() = 0; - virtual bool IsProfilingEnabled() const = 0; - virtual bool IsTimelineReportingEnabled() const = 0; - virtual CaptureData GetCaptureData() = 0; - virtual ProfilingState GetCurrentState() const = 0; - // Resets the profiling options, optionally clears the profiling service entirely - virtual void ResetExternalProfilingOptions(const ProfilingOptions& options, - bool resetProfilingService = false) = 0; - virtual ProfilingState ConfigureProfilingService(const ProfilingOptions& options, - bool resetProfilingService = false) = 0; - // Store a profiling context returned from a backend that support profiling. - virtual void AddBackendProfilingContext(const std::string& backendId, - std::shared_ptr<IBackendProfilingContext> profilingContext) = 0; - virtual ICounterRegistry& GetCounterRegistry() = 0; - virtual IRegisterCounterMapping& GetCounterMappingRegistry() = 0; - virtual bool IsCategoryRegistered(const std::string& categoryName) const = 0; - virtual void InitializeCounterValue(uint16_t counterUid) = 0; - - // IProfilingGuidGenerator functions - /// Return the next random Guid in the sequence - ProfilingDynamicGuid NextGuid() override; - /// Create a ProfilingStaticGuid based on a hash of the string - ProfilingStaticGuid GenerateStaticId(const std::string& str) override; - static ProfilingDynamicGuid GetNextGuid(); - static ProfilingStaticGuid GetStaticId(const std::string& str); - void ResetGuidGenerator(); - - virtual void Disconnect() = 0; - -private: - static ProfilingGuidGenerator m_GuidGenerator; -}; - -} // namespace pipe - -} // namespace arm |