Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
ScopeProfiler Class Reference

#include <profiler.h>

+ Collaboration diagram for ScopeProfiler:

Public Member Functions

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

Private Attributes

Profilerm_profiler = nullptr
 
std::string m_name
 
u64 m_time1
 
ScopeProfilerType m_type
 
TimePrecision m_precision
 

Constructor & Destructor Documentation

◆ ScopeProfiler()

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

References porting::getTime(), m_name, m_time1, and TimePrecision_units.

+ Here is the call graph for this function:

◆ ~ScopeProfiler()

ScopeProfiler::~ScopeProfiler ( )

References Profiler::add(), Profiler::avg(), porting::getTime(), Profiler::graphAdd(), m_name, m_precision, m_profiler, m_time1, m_type, Profiler::max(), SPT_ADD, SPT_AVG, SPT_GRAPH_ADD, and SPT_MAX.

+ 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_precision

TimePrecision ScopeProfiler::m_precision
private

Referenced by ~ScopeProfiler().

◆ m_profiler

Profiler* ScopeProfiler::m_profiler = nullptr
private

Referenced by ~ScopeProfiler().

◆ m_time1

u64 ScopeProfiler::m_time1
private

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

◆ m_type

ScopeProfilerType ScopeProfiler::m_type
private

Referenced by ~ScopeProfiler().


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