29 Event(
const std::string& eventName,
33 std::vector<InstrumentPtr>&& instrument);
77 std::
string m_EventName;
Event class records measurements reported by BeginEvent()/EndEvent() and returns measurements when Ev...
const Profiler * GetProfiler() const
Get the pointer of the profiler associated with this event.
~Event() noexcept
Destructor.
std::vector< InstrumentPtr > Instruments
const std::string & GetName() const
Get the name of the event.
Copyright (c) 2020 ARM Limited.
void Start()
Start the Event.
void Stop()
Stop the Event.
BackendId GetBackendId() const
Get the backend id of the event.
const std::vector< Measurement > GetMeasurements() const
Get the recorded measurements calculated between Start() and Stop()
std::unique_ptr< Instrument > InstrumentPtr
Event(const std::string &eventName, Profiler *profiler, Event *parent, const BackendId backendId, std::vector< InstrumentPtr > &&instrument)
const Event * GetParentEvent() const
Get the pointer of the parent event.