yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gfx::ScopedTimer Class Reference

RAII timer for automatic timing management. More...

#include <performance_profiler.h>

Public Member Functions

 ScopedTimer (const std::string &operation_name)
 
 ~ScopedTimer ()
 
 ScopedTimer (const ScopedTimer &)=delete
 
ScopedTimeroperator= (const ScopedTimer &)=delete
 
 ScopedTimer (ScopedTimer &&)=delete
 
ScopedTimeroperator= (ScopedTimer &&)=delete
 

Private Attributes

std::string operation_name_
 

Detailed Description

RAII timer for automatic timing management.

Usage: { ScopedTimer timer("operation_name"); // ... code to time ... } // Timer automatically ends here

Definition at line 191 of file performance_profiler.h.

Constructor & Destructor Documentation

◆ ScopedTimer() [1/3]

yaze::gfx::ScopedTimer::ScopedTimer ( const std::string &  operation_name)
explicit

◆ ~ScopedTimer()

yaze::gfx::ScopedTimer::~ScopedTimer ( )

◆ ScopedTimer() [2/3]

yaze::gfx::ScopedTimer::ScopedTimer ( const ScopedTimer )
delete

◆ ScopedTimer() [3/3]

yaze::gfx::ScopedTimer::ScopedTimer ( ScopedTimer &&  )
delete

Member Function Documentation

◆ operator=() [1/2]

ScopedTimer & yaze::gfx::ScopedTimer::operator= ( const ScopedTimer )
delete

◆ operator=() [2/2]

ScopedTimer & yaze::gfx::ScopedTimer::operator= ( ScopedTimer &&  )
delete

Member Data Documentation

◆ operation_name_

std::string yaze::gfx::ScopedTimer::operation_name_
private

Definition at line 203 of file performance_profiler.h.

Referenced by ScopedTimer(), and ~ScopedTimer().


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