aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/ProfilingService.hpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2019-10-24 11:58:06 +0100
committerJim Flynn <jim.flynn@arm.com>2019-10-25 11:27:29 +0100
commit00f3aaf282c53b47f4cebfa4b29d7039da883bc1 (patch)
tree6ac1bf62f5c0cc442ddc77800ef44346185df16e /src/profiling/ProfilingService.hpp
parentc975f9295e076febd4ecd45c9174d54f7327b3cc (diff)
downloadarmnn-00f3aaf282c53b47f4cebfa4b29d7039da883bc1.tar.gz
IVGCVSW-4027 Add the IProfilingGuidGenerator interface
Change-Id: Idfb80d73171aa2b57d4dcf01dc137817cf19d2bd Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/ProfilingService.hpp')
-rw-r--r--src/profiling/ProfilingService.hpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/profiling/ProfilingService.hpp b/src/profiling/ProfilingService.hpp
index f2c1783a11..c70c670a87 100644
--- a/src/profiling/ProfilingService.hpp
+++ b/src/profiling/ProfilingService.hpp
@@ -17,6 +17,7 @@
#include "RequestCounterDirectoryCommandHandler.hpp"
#include "PeriodicCounterSelectionCommandHandler.hpp"
#include "PerJobCounterSelectionCommandHandler.hpp"
+#include "ProfilingGuidGenerator.hpp"
namespace armnn
{
@@ -24,7 +25,7 @@ namespace armnn
namespace profiling
{
-class ProfilingService : public IReadWriteCounterValues
+class ProfilingService : public IReadWriteCounterValues, public IProfilingGuidGenerator
{
public:
using ExternalProfilingOptions = Runtime::CreationOptions::ExternalProfilingOptions;
@@ -66,6 +67,12 @@ public:
uint32_t IncrementCounterValue(uint16_t counterUid) override;
uint32_t DecrementCounterValue(uint16_t counterUid) override;
+ // 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;
+
private:
// Copy/move constructors/destructors and copy/move assignment operators are deleted
ProfilingService(const ProfilingService&) = delete;
@@ -101,6 +108,7 @@ private:
RequestCounterDirectoryCommandHandler m_RequestCounterDirectoryCommandHandler;
PeriodicCounterSelectionCommandHandler m_PeriodicCounterSelectionCommandHandler;
PerJobCounterSelectionCommandHandler m_PerJobCounterSelectionCommandHandler;
+ ProfilingGuidGenerator m_GuidGenerator;
protected:
// Default constructor/destructor kept protected for testing