group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
group2::perf::ScopeTimer Class Reference

RAII scoped timer. More...

#include <Profiler.hpp>

Public Member Functions

 ScopeTimer (ScopeId id) noexcept
 ~ScopeTimer () noexcept
 ScopeTimer (const ScopeTimer &)=delete
ScopeTimeroperator= (const ScopeTimer &)=delete
 ScopeTimer (ScopeTimer &&)=delete
ScopeTimeroperator= (ScopeTimer &&)=delete

Private Attributes

ScopeId scopeId {k_invalidScope}
bool recording {false}
std::uint64_t startCounter {0}

Detailed Description

RAII scoped timer.

ctor reads enabled flag + start counter; dtor records the delta if armed.

Constructor & Destructor Documentation

◆ ScopeTimer() [1/3]

group2::perf::ScopeTimer::ScopeTimer ( ScopeId id)
inlineexplicitnoexcept
Here is the caller graph for this function:

◆ ~ScopeTimer()

group2::perf::ScopeTimer::~ScopeTimer ( )
inlinenoexcept
Here is the call graph for this function:

◆ ScopeTimer() [2/3]

group2::perf::ScopeTimer::ScopeTimer ( const ScopeTimer & )
delete
Here is the call graph for this function:

◆ ScopeTimer() [3/3]

group2::perf::ScopeTimer::ScopeTimer ( ScopeTimer && )
delete
Here is the call graph for this function:

Member Function Documentation

◆ operator=() [1/2]

ScopeTimer & group2::perf::ScopeTimer::operator= ( const ScopeTimer & )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

ScopeTimer & group2::perf::ScopeTimer::operator= ( ScopeTimer && )
delete
Here is the call graph for this function:

Member Data Documentation

◆ recording

bool group2::perf::ScopeTimer::recording {false}
private

◆ scopeId

ScopeId group2::perf::ScopeTimer::scopeId {k_invalidScope}
private

◆ startCounter

std::uint64_t group2::perf::ScopeTimer::startCounter {0}
private

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