MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
shcore::utils::Profile_timer Class Reference

#include <profiling.h>

Classes

struct  Trace_point
 

Public Member Functions

 Profile_timer ()
 
void reserve (size_t space)
 
void stage_begin (const char *note)
 
void stage_end ()
 
uint64_t total_nanoseconds_elapsed () const
 
double total_milliseconds_elapsed () const
 
double total_seconds_elapsed () const
 
const std::vector< Trace_point > & trace_points () const
 

Private Attributes

std::vector< Trace_point_trace_points
 
std::vector< size_t > _nesting_levels
 
int _depth = 0
 

Constructor & Destructor Documentation

◆ Profile_timer()

shcore::utils::Profile_timer::Profile_timer ( )
inline

Member Function Documentation

◆ reserve()

void shcore::utils::Profile_timer::reserve ( size_t  space)
inline

◆ stage_begin()

void shcore::utils::Profile_timer::stage_begin ( const char *  note)
inline

◆ stage_end()

void shcore::utils::Profile_timer::stage_end ( )
inline

◆ total_milliseconds_elapsed()

double shcore::utils::Profile_timer::total_milliseconds_elapsed ( ) const
inline

◆ total_nanoseconds_elapsed()

uint64_t shcore::utils::Profile_timer::total_nanoseconds_elapsed ( ) const
inline

◆ total_seconds_elapsed()

double shcore::utils::Profile_timer::total_seconds_elapsed ( ) const
inline

◆ trace_points()

const std::vector< Trace_point > & shcore::utils::Profile_timer::trace_points ( ) const
inline

Member Data Documentation

◆ _depth

int shcore::utils::Profile_timer::_depth = 0
private

◆ _nesting_levels

std::vector<size_t> shcore::utils::Profile_timer::_nesting_levels
private

◆ _trace_points

std::vector<Trace_point> shcore::utils::Profile_timer::_trace_points
private

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