Minetest  5.4.0
ProfilerGraph Class Reference

#include <profilergraph.h>

+ Collaboration diagram for ProfilerGraph:

Classes

struct  Meta
 
struct  Piece
 

Public Member Functions

 ProfilerGraph ()=default
 
void put (const Profiler::GraphValues &values)
 
void draw (s32 x_left, s32 y_bottom, video::IVideoDriver *driver, gui::IGUIFont *font) const
 

Public Attributes

u32 m_log_max_size = 200
 

Private Attributes

std::deque< Piecem_log
 

Constructor & Destructor Documentation

◆ ProfilerGraph()

ProfilerGraph::ProfilerGraph ( )
default

Member Function Documentation

◆ draw()

void ProfilerGraph::draw ( s32  x_left,
s32  y_bottom,
video::IVideoDriver *  driver,
gui::IGUIFont *  font 
) const

References ProfilerGraph::Meta::color, m_log, m_log_max_size, ProfilerGraph::Meta::max, ProfilerGraph::Meta::min, porting::mt_snprintf(), p(), and utf8_to_wide().

Referenced by Game::updateFrame().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ put()

void ProfilerGraph::put ( const Profiler::GraphValues values)

References m_log, and m_log_max_size.

Referenced by Game::updateProfilerGraphs().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_log

std::deque<Piece> ProfilerGraph::m_log
private

Referenced by draw(), and put().

◆ m_log_max_size

u32 ProfilerGraph::m_log_max_size = 200

Referenced by draw(), and put().


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