#include <Profiling.hpp>
Definition at line 130 of file Profiling.hpp.
◆ InstrumentPtr
◆ ScopedProfilingEvent()
template<typename... Args>
Definition at line 136 of file Profiling.hpp.
140 : m_Event(nullptr)
141 , m_Profiler(ProfilerManager::GetInstance().GetProfiler())
142 {
143 if (m_Profiler && m_Profiler->IsProfilingEnabled())
144 {
145 std::vector<InstrumentPtr> instruments(0);
146 instruments.reserve(sizeof...(args));
147 ConstructNextInVector(instruments, std::forward<Args>(args)...);
148 m_Event = m_Profiler->BeginEvent(backendId, name, std::move(instruments), guid);
149 }
150 }
◆ ~ScopedProfilingEvent()
Definition at line 152 of file Profiling.hpp.
153 {
154 if (m_Profiler && m_Event)
155 {
156 m_Profiler->pProfilerImpl->EndEvent(m_Event);
157 }
158 }
The documentation for this class was generated from the following file: