TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::Diagnostics::ScopedTimer Class Reference

Times its own lifetime as a scope; a disabled profiler costs one branch. More...

#include <gui_core/diagnostics/gui_profiler.h>

Public Member Functions

 ScopedTimer (ProfilerCollector &collector, ScopeLocation &loc) noexcept
 ~ScopedTimer () noexcept
 ScopedTimer (const ScopedTimer &)=delete
ScopedTimer & operator= (const ScopedTimer &)=delete

Detailed Description

Times its own lifetime as a scope; a disabled profiler costs one branch.

Constructor & Destructor Documentation

◆ ScopedTimer() [1/2]

tachyon::Diagnostics::ScopedTimer::ScopedTimer ( ProfilerCollector & collector,
ScopeLocation & loc )
inlinenoexcept

◆ ~ScopedTimer()

tachyon::Diagnostics::ScopedTimer::~ScopedTimer ( )
inlinenoexcept

◆ ScopedTimer() [2/2]

tachyon::Diagnostics::ScopedTimer::ScopedTimer ( const ScopedTimer & )
delete

Member Function Documentation

◆ operator=()

ScopedTimer & tachyon::Diagnostics::ScopedTimer::operator= ( const ScopedTimer & )
delete

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