13 #include <common/include/ProfilingGuid.hpp> 33 Event(
const std::string& eventName,
37 std::vector<InstrumentPtr>&& instrument,
86 std::
string m_EventName;
101 Optional<profiling::ProfilingGuid> m_ProfilingGuid;
Event class records measurements reported by BeginEvent()/EndEvent() and returns measurements when Ev...
Event(const std::string &eventName, IProfiler *profiler, Event *parent, const BackendId backendId, std::vector< InstrumentPtr > &&instrument, const Optional< profiling::ProfilingGuid > guid)
~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.
Optional< profiling::ProfilingGuid > GetProfilingGuid() const
Get the associated profiling GUID if the event is a workload.
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.