24.08
|
Go to the documentation of this file.
13 #include <common/include/ProfilingGuid.hpp>
33 Event(
const std::string& eventName,
37 std::vector<InstrumentPtr>&& instrument,
90 std::
string m_EventName;
105 Optional<
arm::pipe::ProfilingGuid> m_ProfilingGuid;
std::unique_ptr< Instrument > InstrumentPtr
const std::string & GetName() const
Get the name of the event.
const Event * GetParentEvent() const
Get the pointer of the parent event.
const std::vector< Measurement > GetMeasurements() const
Get the recorded measurements calculated between Start() and Stop()
Event(const std::string &eventName, IProfiler *profiler, Event *parent, const BackendId backendId, std::vector< InstrumentPtr > &&instrument, const Optional< arm::pipe::ProfilingGuid > guid)
Optional< arm::pipe::ProfilingGuid > GetProfilingGuid() const
Get the associated profiling GUID if the event is a workload.
Event class records measurements reported by BeginEvent()/EndEvent() and returns measurements when Ev...
const std::vector< InstrumentPtr > & GetInstruments() const
Get the Instruments used by this Event.
const IProfiler * GetProfiler() const
Get the pointer of the profiler associated with this event.
void Start()
Start the Event.
~Event() noexcept
Destructor.
std::vector< InstrumentPtr > Instruments
Copyright (c) 2021 ARM Limited and Contributors.
BackendId GetBackendId() const
Get the backend id of the event.
void Stop()
Stop the Event.