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...
~Event() noexcept
Destructor.
std::vector< InstrumentPtr > Instruments
const std::string & GetName() const
Get the name of the event.
Copyright (c) 2021 ARM Limited and Contributors.
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
const IProfiler * GetProfiler() const
Get the pointer of the profiler associated with this event.
const Event * GetParentEvent() const
Get the pointer of the parent event.
Event(const std::string &eventName, IProfiler *profiler, Event *parent, const BackendId backendId, std::vector< InstrumentPtr > &&instrument)