一呼百應, "one call, a hundred responses"
Loading...
Searching...
No Matches
ein::profiling::scope_event< Profile > Struct Template Reference

#include <profiling.hpp>

Public Types

using duration = typename Profile::duration
 
using clock = typename Profile::clock
 
using mutex = typename Profile::mutex
 
using event = profile_event<duration,clock>
 

Public Member Functions

 scope_event (Profile &profile, static_string name) noexcept
 
 ~scope_event () noexcept
 

Public Attributes

Profile & profile
 

Detailed Description

template<typename Profile>
struct ein::profiling::scope_event< Profile >

Definition at line 220 of file profiling.hpp.

Member Typedef Documentation

◆ clock

template<typename Profile >
using ein::profiling::scope_event< Profile >::clock = typename Profile::clock

Definition at line 222 of file profiling.hpp.

◆ duration

template<typename Profile >
using ein::profiling::scope_event< Profile >::duration = typename Profile::duration

Definition at line 221 of file profiling.hpp.

◆ event

template<typename Profile >
using ein::profiling::scope_event< Profile >::event = profile_event<duration,clock>

Definition at line 224 of file profiling.hpp.

◆ mutex

template<typename Profile >
using ein::profiling::scope_event< Profile >::mutex = typename Profile::mutex

Definition at line 223 of file profiling.hpp.

Constructor & Destructor Documentation

◆ scope_event()

template<typename Profile >
ein::profiling::scope_event< Profile >::scope_event ( Profile & profile,
static_string name )
inlinenoexcept[[always_inline]]

Definition at line 228 of file profiling.hpp.

229 : profile(profile) {
230 profile.log({
231 .name = name,
233 });
234 }

References ein::profiling::duration_begin, and ein::profiling::profile< Mutex, Duration, Clock >::log().

◆ ~scope_event()

template<typename Profile >
ein::profiling::scope_event< Profile >::~scope_event ( )
inlinenoexcept[[always_inline]]

Definition at line 237 of file profiling.hpp.

237 {
238 profile.log({
240 });
241 }

References ein::profiling::duration_end, and ein::profiling::profile< Mutex, Duration, Clock >::log().

Member Data Documentation

◆ profile

template<typename Profile >
Profile& ein::profiling::scope_event< Profile >::profile

Definition at line 225 of file profiling.hpp.


The documentation for this struct was generated from the following file: