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.hpp | |
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.hpp')
-rw-r--r-- | src/armnn/ProfilingEvent.hpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/armnn/ProfilingEvent.hpp b/src/armnn/ProfilingEvent.hpp index 7afd5c100c..b0d5be70ba 100644 --- a/src/armnn/ProfilingEvent.hpp +++ b/src/armnn/ProfilingEvent.hpp @@ -9,6 +9,10 @@ #include <vector> #include <chrono> #include <memory> + +#include <common/include/ProfilingGuid.hpp> +#include <armnn/Optional.hpp> + #include "Instrument.hpp" #include "armnn/Types.hpp" @@ -30,7 +34,8 @@ public: IProfiler* profiler, Event* parent, const BackendId backendId, - std::vector<InstrumentPtr>&& instrument); + std::vector<InstrumentPtr>&& instrument, + const Optional<profiling::ProfilingGuid> guid); Event(const Event& other) = delete; @@ -66,6 +71,10 @@ public: /// \return Backend id of the event BackendId GetBackendId() const; + /// Get the associated profiling GUID if the event is a workload + /// \return Optional GUID of the event + Optional<profiling::ProfilingGuid> GetProfilingGuid() const; + /// Assignment operator Event& operator=(const Event& other) = delete; @@ -87,6 +96,9 @@ private: /// Instruments to use Instruments m_Instruments; + + /// Workload Profiling id + Optional<profiling::ProfilingGuid> m_ProfilingGuid; }; } // namespace armnn |