diff options
Diffstat (limited to 'src/profiling')
-rw-r--r-- | src/profiling/IProfilingGuidGenerator.hpp | 32 | ||||
-rw-r--r-- | src/profiling/ProfilingGuidGenerator.hpp | 2 | ||||
-rw-r--r-- | src/profiling/ProfilingService.cpp | 5 |
3 files changed, 6 insertions, 33 deletions
diff --git a/src/profiling/IProfilingGuidGenerator.hpp b/src/profiling/IProfilingGuidGenerator.hpp deleted file mode 100644 index fb9f7401fb..0000000000 --- a/src/profiling/IProfilingGuidGenerator.hpp +++ /dev/null @@ -1,32 +0,0 @@ -// -// Copyright © 2019 Arm Ltd. All rights reserved. -// SPDX-License-Identifier: MIT -// - -#pragma once - -#include <armnn/Types.hpp> - -#include <string> - -namespace armnn -{ - -namespace profiling -{ - -class IProfilingGuidGenerator -{ -public: - /// Return the next random Guid in the sequence - virtual ProfilingDynamicGuid NextGuid() = 0; - - /// Create a ProfilingStaticGuid based on a hash of the string - virtual ProfilingStaticGuid GenerateStaticId(const std::string& str) = 0; - - virtual ~IProfilingGuidGenerator() {} -}; - -} // namespace profiling - -} // namespace armnn diff --git a/src/profiling/ProfilingGuidGenerator.hpp b/src/profiling/ProfilingGuidGenerator.hpp index 97de4a88e5..45f523c980 100644 --- a/src/profiling/ProfilingGuidGenerator.hpp +++ b/src/profiling/ProfilingGuidGenerator.hpp @@ -5,7 +5,7 @@ #pragma once -#include "IProfilingGuidGenerator.hpp" +#include "armnn/IProfilingGuidGenerator.hpp" #include <functional> diff --git a/src/profiling/ProfilingService.cpp b/src/profiling/ProfilingService.cpp index c4063a583c..cbd8d6bde8 100644 --- a/src/profiling/ProfilingService.cpp +++ b/src/profiling/ProfilingService.cpp @@ -14,6 +14,11 @@ namespace armnn namespace profiling { +IProfilingGuidGenerator& IProfilingGuidGenerator::Instance() +{ + return ProfilingService::Instance(); +} + void ProfilingService::ResetExternalProfilingOptions(const ExternalProfilingOptions& options, bool resetProfilingService) { |