EyeAI
Loading...
Searching...
No Matches
ProfileScopeRecord Struct Reference

#include <Profiling.hpp>

Collaboration diagram for ProfileScopeRecord:
[legend]

Public Member Functions

 ProfileScopeRecord ()=default
 
 ProfileScopeRecord (std::string_view name, int scope_depth, profile_clock::time_point start, profile_clock::duration duration)
 
std::string formatted () const
 

Public Attributes

std::string_view name
 
int scope_depth = 0
 
profile_clock::time_point start
 
profile_clock::duration duration = profile_clock::duration::zero()
 

Detailed Description

A profile scope record represents a instrumented function or scope by ProfileScope

Constructor & Destructor Documentation

◆ ProfileScopeRecord() [1/2]

ProfileScopeRecord::ProfileScopeRecord ( )
explicitdefault

◆ ProfileScopeRecord() [2/2]

ProfileScopeRecord::ProfileScopeRecord ( std::string_view name,
int scope_depth,
profile_clock::time_point start,
profile_clock::duration duration )
inlineexplicit

Member Function Documentation

◆ formatted()

std::string ProfileScopeRecord::formatted ( ) const
nodiscard

Member Data Documentation

◆ duration

profile_clock::duration ProfileScopeRecord::duration = profile_clock::duration::zero()

◆ name

std::string_view ProfileScopeRecord::name

◆ scope_depth

int ProfileScopeRecord::scope_depth = 0

◆ start

profile_clock::time_point ProfileScopeRecord::start