20.02
|
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, Profiler *profiler, Event *parent, const BackendId backendId, std::vector< InstrumentPtr > &&instrument) | |
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::string & | GetName () const |
Get the name of the event. More... | |
const Profiler * | 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... | |
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 23 of file ProfilingEvent.hpp.
using InstrumentPtr = std::unique_ptr<Instrument> |
Definition at line 26 of file ProfilingEvent.hpp.
using Instruments = std::vector<InstrumentPtr> |
Definition at line 27 of file ProfilingEvent.hpp.
Event | ( | const std::string & | eventName, |
Profiler * | profiler, | ||
Event * | parent, | ||
const BackendId | backendId, | ||
std::vector< InstrumentPtr > && | instrument | ||
) |
Definition at line 11 of file ProfilingEvent.cpp.
Move Constructor.
Definition at line 24 of file ProfilingEvent.cpp.
|
noexcept |
BackendId GetBackendId | ( | ) | const |
Get the backend id of the event.
Definition at line 82 of file ProfilingEvent.cpp.
Referenced by Profiler::AnalyzeEventSequenceAndWriteResults().
const std::vector< Measurement > GetMeasurements | ( | ) | const |
Get the recorded measurements calculated between Start() and Stop()
Definition at line 54 of file ProfilingEvent.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), armnn::ExtractJsonObjects(), armnn::FindKernelMeasurements(), and armnn::FindMeasurement().
const std::string & GetName | ( | ) | const |
Get the name of the event.
Definition at line 67 of file ProfilingEvent.cpp.
Referenced by Profiler::AnalyzeEventSequenceAndWriteResults(), BOOST_AUTO_TEST_CASE(), and armnn::CalcLevel().
const Event * GetParentEvent | ( | ) | const |
Get the pointer of the parent event.
Definition at line 77 of file ProfilingEvent.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), armnn::CalcLevel(), and Profiler::EndEvent().
const Profiler * GetProfiler | ( | ) | const |
Get the pointer of the profiler associated with this event.
Definition at line 72 of file ProfilingEvent.cpp.
Move Assignment operator.
Definition at line 87 of file ProfilingEvent.cpp.
void Start | ( | ) |
Start the Event.
Definition at line 38 of file ProfilingEvent.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
void Stop | ( | ) |
Stop the Event.
Definition at line 46 of file ProfilingEvent.cpp.
Referenced by BOOST_AUTO_TEST_CASE().