aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/JsonPrinter.cpp
diff options
context:
space:
mode:
authorKeith Davis <keith.davis@arm.com>2021-10-22 14:17:19 +0100
committerKeithARM <keith.davis@arm.com>2021-10-27 10:50:14 +0000
commitec22ad2c54e1706cdd51a3d784f87c7d189120ae (patch)
treeccc1395a2dd684cd4250009940603e42a0c4fa5a /src/armnn/JsonPrinter.cpp
parent615ad6cde5a56d8f38e1b9261621b40671a00ed7 (diff)
downloadarmnn-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.cpp17
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())
{