diff options
author | Keith Davis <keith.davis@arm.com> | 2021-10-22 14:17:19 +0100 |
---|---|---|
committer | KeithARM <keith.davis@arm.com> | 2021-10-27 10:50:14 +0000 |
commit | ec22ad2c54e1706cdd51a3d784f87c7d189120ae (patch) | |
tree | ccc1395a2dd684cd4250009940603e42a0c4fa5a /src/armnn/JsonPrinter.hpp | |
parent | 615ad6cde5a56d8f38e1b9261621b40671a00ed7 (diff) | |
download | armnn-ec22ad2c54e1706cdd51a3d784f87c7d189120ae.tar.gz |
IVGCVSW-6291 Issue parsing profiling layer details
* Remove ConfigureDetailsObject function as it does not have ProfilerImpl scope
* Add Graph title into Json structure
Signed-off-by: Keith Davis <keith.davis@arm.com>
Change-Id: Ia5068a5a457a77fd01e974e0b5aa0f309f15bfa7
Diffstat (limited to 'src/armnn/JsonPrinter.hpp')
-rw-r--r-- | src/armnn/JsonPrinter.hpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/armnn/JsonPrinter.hpp b/src/armnn/JsonPrinter.hpp index 9e8ecb48e5..d9b83869d7 100644 --- a/src/armnn/JsonPrinter.hpp +++ b/src/armnn/JsonPrinter.hpp @@ -31,7 +31,8 @@ struct JsonChildObject : m_Label(label), m_Unit(Measurement::Unit::TIME_MS), m_Type(JsonObjectType::Event), - m_Guid(armnn::EmptyOptional()) + m_Guid(armnn::EmptyOptional()), + m_DetailsOnly(false) {} JsonChildObject(const JsonChildObject&) = default; @@ -85,6 +86,16 @@ struct JsonChildObject return m_Type; } + void EnableDetailsOnly() + { + m_DetailsOnly = true; + } + + bool IsDetailsOnlyEnabled() const + { + return m_DetailsOnly; + } + ~JsonChildObject() = default; std::string m_Label; @@ -96,6 +107,7 @@ struct JsonChildObject std::vector<JsonChildObject> m_Children; private: + bool m_DetailsOnly; JsonChildObject() = delete; }; |