MCPcopy Create free account
hub / github.com/ARM-software/armnn / GetJSONString

Method GetJSONString

src/timelineDecoder/JSONTimelineDecoder.cpp:224–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224std::string JSONTimelineDecoder::GetJSONString(JSONTimelineDecoder::JSONEntity& rootEntity)
225{
226 int counter = 0;
227 std::string json;
228 json.append("{\n");
229 if(rootEntity.GetType() != "")
230 {
231 json.append("\tArmNN");
232 json.append(": {\n");
233
234 for (uint64_t childEntityId : rootEntity.childEntities)
235 {
236 JSONEntity& childEntity = this->m_Model.jsonEntities.at(childEntityId);
237 json.append(GetJSONEntityString(childEntity, counter));
238 }
239 }
240 json.append("}\n");
241 return json;
242}
243
244std::string JSONTimelineDecoder::GetJSONEntityString(JSONTimelineDecoder::JSONEntity& entity, int& counter)
245{

Callers 1

Calls 2

appendMethod · 0.80
GetTypeMethod · 0.45

Tested by

no test coverage detected