diff options
author | Keith Davis <keith.davis@arm.com> | 2021-08-04 10:35:20 +0100 |
---|---|---|
committer | KeithARM <keith.davis@arm.com> | 2021-08-05 08:11:06 +0000 |
commit | 5a64f22101ecdda4846e9d71428633f3ccd56fb2 (patch) | |
tree | 5d5dcb617bf2c2786b37a7c64bb6c54ca5696914 /src/armnn/ProfilingEvent.cpp | |
parent | 8c999dfeeca7b02a6ea1d0cdcd8c34472f6c9cce (diff) | |
download | armnn-5a64f22101ecdda4846e9d71428633f3ccd56fb2.tar.gz |
IVGCVSW-5980 Add Descriptor, TensorInfo and Convolution algorithm to JSON
* Add GUID as field to layer details and profiling events
* Add Optional GUID param to existing tests
* Improve Details macro to be inline function
* Fix some formatting
Signed-off-by: Keith Davis <keith.davis@arm.com>
Change-Id: I66f192a90a7642b3ee8e7dda0d3f428cce002581
Diffstat (limited to 'src/armnn/ProfilingEvent.cpp')
-rw-r--r-- | src/armnn/ProfilingEvent.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/armnn/ProfilingEvent.cpp b/src/armnn/ProfilingEvent.cpp index 1ba9789034..31d4b91d23 100644 --- a/src/armnn/ProfilingEvent.cpp +++ b/src/armnn/ProfilingEvent.cpp @@ -12,12 +12,14 @@ Event::Event(const std::string& eventName, IProfiler* profiler, Event* parent, const BackendId backendId, - std::vector<InstrumentPtr>&& instruments) + std::vector<InstrumentPtr>&& instruments, + const Optional<profiling::ProfilingGuid> guid) : m_EventName(eventName) , m_Profiler(profiler) , m_Parent(parent) , m_BackendId(backendId) , m_Instruments(std::move(instruments)) + , m_ProfilingGuid(guid) { } @@ -27,7 +29,7 @@ Event::Event(Event&& other) noexcept , m_Parent(other.m_Parent) , m_BackendId(other.m_BackendId) , m_Instruments(std::move(other.m_Instruments)) - + , m_ProfilingGuid(other.m_ProfilingGuid) { } @@ -84,6 +86,12 @@ BackendId Event::GetBackendId() const return m_BackendId; } +Optional<profiling::ProfilingGuid> Event::GetProfilingGuid() const +{ + return m_ProfilingGuid; +} + + Event& Event::operator=(Event&& other) noexcept { if (this == &other) @@ -95,6 +103,7 @@ Event& Event::operator=(Event&& other) noexcept m_Profiler = other.m_Profiler; m_Parent = other.m_Parent; m_BackendId = other.m_BackendId; + m_ProfilingGuid = other.m_ProfilingGuid; other.m_Profiler = nullptr; other.m_Parent = nullptr; return *this; |