24.08
|
Go to the documentation of this file.
13 #include <ProfilingGuid.hpp>
46 std::stringstream layerDetails(layerDetailsStr);
47 std::string stringLine;
48 while (std::getline(layerDetails, stringLine,
'\n'))
54 void SetGuid(arm::pipe::ProfilingGuid guid)
118 void PrintLabel(
const std::string& label,
size_t id);
121 void PrintGuid(arm::pipe::ProfilingGuid guid);
126 :
JsonUtils(outputStream), m_OutputStream(outputStream)
130 std::string MakeKey(
const std::string& label,
size_t id);
132 std::ostream& m_OutputStream;
void PrintLabel(const std::string &label, size_t id)
JsonChildObject(const std::string &label)
void AddChild(const JsonChildObject &childObject)
void SetUnit(const Measurement::Unit unit)
void SetAndParseDetails(std::string layerDetailsStr)
void AddMeasurement(const double measurement)
~JsonChildObject()=default
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
JsonChildObject & GetChild(const unsigned int index)
Event class records measurements reported by BeginEvent()/EndEvent() and returns measurements when Ev...
void PrintType(armnn::JsonObjectType type)
void SetType(JsonObjectType type)
void PrintGuid(arm::pipe::ProfilingGuid guid)
JsonObjectType GetType() const
std::vector< std::string > m_LayerDetailsList
void SetGuid(arm::pipe::ProfilingGuid guid)
std::vector< JsonChildObject > m_Children
size_t NumChildren() const
Copyright (c) 2021 ARM Limited and Contributors.
void PrintUnit(armnn::Measurement::Unit unit)
bool IsDetailsOnlyEnabled() const
void PrintJsonChildObject(const JsonChildObject &object, size_t &id)
std::vector< double > m_Measurements
Optional< arm::pipe::ProfilingGuid > m_Guid
void PrintMeasurementsList(const std::vector< double > &measurementsVector)
JsonPrinter(std::ostream &outputStream)