Minetest  5.4.0
ScopeProfiler Class Reference

#include <profiler.h>

+ Collaboration diagram for ScopeProfiler:

Public Member Functions

 ScopeProfiler (Profiler *profiler, const std::string &name, ScopeProfilerType type=SPT_ADD)
 
 ~ScopeProfiler ()
 

Private Attributes

Profilerm_profiler = nullptr
 
std::string m_name
 
TimeTakerm_timer = nullptr
 
enum ScopeProfilerType m_type
 

Constructor & Destructor Documentation

◆ ScopeProfiler()

ScopeProfiler::ScopeProfiler ( Profiler profiler,
const std::string &  name,
ScopeProfilerType  type = SPT_ADD 
)

◆ ~ScopeProfiler()

ScopeProfiler::~ScopeProfiler ( )

References Profiler::add(), Profiler::avg(), Profiler::graphAdd(), m_name, m_profiler, m_timer, m_type, SPT_ADD, SPT_AVG, SPT_GRAPH_ADD, and TimeTaker::stop().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_name

std::string ScopeProfiler::m_name
private

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

◆ m_profiler

Profiler* ScopeProfiler::m_profiler = nullptr
private

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

◆ m_timer

TimeTaker* ScopeProfiler::m_timer = nullptr
private

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

◆ m_type

enum ScopeProfilerType ScopeProfiler::m_type
private

Referenced by ~ScopeProfiler().


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