24.08
|
Event class records measurements reported by BeginEvent()/EndEvent() and returns measurements when Event::GetMeasurements() is called. More...
#include <ProfilingEvent.hpp>
Public Types | |
using | InstrumentPtr = std::unique_ptr< Instrument > |
using | Instruments = std::vector< InstrumentPtr > |
Public Member Functions | |
Event (const std::string &eventName, IProfiler *profiler, Event *parent, const BackendId backendId, std::vector< InstrumentPtr > &&instrument, const Optional< arm::pipe::ProfilingGuid > guid) | |
Event (const Event &other)=delete | |
Event (Event &&other) noexcept | |
Move Constructor. More... | |
~Event () noexcept | |
Destructor. More... | |
void | Start () |
Start the Event. More... | |
void | Stop () |
Stop the Event. More... | |
const std::vector< Measurement > | GetMeasurements () const |
Get the recorded measurements calculated between Start() and Stop() More... | |
const std::vector< InstrumentPtr > & | GetInstruments () const |
Get the Instruments used by this Event. More... | |
const std::string & | GetName () const |
Get the name of the event. More... | |
const IProfiler * | GetProfiler () const |
Get the pointer of the profiler associated with this event. More... | |
const Event * | GetParentEvent () const |
Get the pointer of the parent event. More... | |
BackendId | GetBackendId () const |
Get the backend id of the event. More... | |
Optional< arm::pipe::ProfilingGuid > | GetProfilingGuid () const |
Get the associated profiling GUID if the event is a workload. More... | |
Event & | operator= (const Event &other)=delete |
Assignment operator. More... | |
Event & | operator= (Event &&other) noexcept |
Move Assignment operator. More... | |
Event class records measurements reported by BeginEvent()/EndEvent() and returns measurements when Event::GetMeasurements() is called.
Definition at line 27 of file ProfilingEvent.hpp.
using InstrumentPtr = std::unique_ptr<Instrument> |
Definition at line 30 of file ProfilingEvent.hpp.
using Instruments = std::vector<InstrumentPtr> |
Definition at line 31 of file ProfilingEvent.hpp.
Event | ( | const std::string & | eventName, |
IProfiler * | profiler, | ||
Event * | parent, | ||
const BackendId | backendId, | ||
std::vector< InstrumentPtr > && | instrument, | ||
const Optional< arm::pipe::ProfilingGuid > | guid | ||
) |
Definition at line 11 of file ProfilingEvent.cpp.
Move Constructor.
Definition at line 26 of file ProfilingEvent.cpp.
|
noexcept |
BackendId GetBackendId | ( | ) | const |
Get the backend id of the event.
Definition at line 89 of file ProfilingEvent.cpp.
Referenced by ProfilerImpl::AnalyzeEventSequenceAndWriteResults().
const std::vector< Event::InstrumentPtr > & GetInstruments | ( | ) | const |
Get the Instruments used by this Event.
Definition at line 69 of file ProfilingEvent.cpp.
Referenced by armnn::ExtractJsonObjects().
const std::vector< Measurement > GetMeasurements | ( | ) | const |
Get the recorded measurements calculated between Start() and Stop()
Definition at line 56 of file ProfilingEvent.cpp.
Referenced by armnn::ExtractJsonObjects(), armnn::FindKernelMeasurements(), and armnn::FindMeasurement().
const std::string & GetName | ( | ) | const |
Get the name of the event.
Definition at line 74 of file ProfilingEvent.cpp.
Referenced by ProfilerImpl::AnalyzeEventSequenceAndWriteResults(), and ProfilerImpl::PopulateParent().
const Event * GetParentEvent | ( | ) | const |
Get the pointer of the parent event.
Definition at line 84 of file ProfilingEvent.cpp.
Referenced by armnn::CalcLevel(), ProfilerImpl::EndEvent(), and ProfilerImpl::PopulateDescendants().
const IProfiler * GetProfiler | ( | ) | const |
Get the pointer of the profiler associated with this event.
Definition at line 79 of file ProfilingEvent.cpp.
Optional< arm::pipe::ProfilingGuid > GetProfilingGuid | ( | ) | const |
Get the associated profiling GUID if the event is a workload.
Definition at line 94 of file ProfilingEvent.cpp.
Referenced by armnn::ExtractJsonObjects().
void Start | ( | ) |
Start the Event.
Definition at line 40 of file ProfilingEvent.cpp.
void Stop | ( | ) |
Stop the Event.
Definition at line 48 of file ProfilingEvent.cpp.