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.cpp | |
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.cpp')
-rw-r--r-- | src/armnn/JsonPrinter.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/armnn/JsonPrinter.cpp b/src/armnn/JsonPrinter.cpp index 94ff7c0610..4be956b90b 100644 --- a/src/armnn/JsonPrinter.cpp +++ b/src/armnn/JsonPrinter.cpp @@ -45,12 +45,29 @@ void JsonPrinter::PrintJsonChildObject(const JsonChildObject& object, size_t& id } else if (object.GetType() == JsonObjectType::ExecObjectDesc) { + // Add details opening + DecrementNumberOfTabs(); + PrintTabs(); + m_OutputStream << std::quoted("Graph") << ":[{"; + PrintNewLine(); + IncrementNumberOfTabs(); + + // Fill details body for (std::string stringLine : object.m_LayerDetailsList) { PrintTabs(); m_OutputStream << stringLine; PrintNewLine(); } + + // Close out details + DecrementNumberOfTabs(); + PrintTabs(); + + object.IsDetailsOnlyEnabled() ? m_OutputStream << "]" : m_OutputStream << "],"; + + PrintNewLine(); + IncrementNumberOfTabs(); } if (!object.m_Children.empty()) { |