Public Member Functions | Private Attributes | List of all members
memory_profiler Class Reference

#include <profiler.h>

Public Member Functions

float get_baseline () const
 
float get_peak () const
 
 memory_profiler ()
 
void section (char const *heading)
 
void section_end ()
 
void snapshot (char const *desc)
 
void stop ()
 
 ~memory_profiler ()
 

Private Attributes

std::atomic_bool _alive { true }
 
float _baseline
 
std::atomic< float > _peak { 0 }
 
std::atomic< float > _s_peak
 
float _s_start = 0.f
 
std::thread _th
 

Detailed Description

Definition at line 22 of file profiler.h.

Constructor & Destructor Documentation

memory_profiler::memory_profiler ( )
inline

Definition at line 35 of file profiler.h.

memory_profiler::~memory_profiler ( )
inline

Definition at line 65 of file profiler.h.

Member Function Documentation

float memory_profiler::get_baseline ( void  ) const
inline

Definition at line 89 of file profiler.h.

float memory_profiler::get_peak ( ) const
inline

Definition at line 88 of file profiler.h.

void memory_profiler::section ( char const *  heading)
inline

Definition at line 49 of file profiler.h.

void memory_profiler::section_end ( )
inline

Definition at line 56 of file profiler.h.

void memory_profiler::snapshot ( char const *  desc)
inline

Definition at line 74 of file profiler.h.

void memory_profiler::stop ( )
inline

Definition at line 79 of file profiler.h.

Member Data Documentation

std::atomic_bool memory_profiler::_alive { true }
private

Definition at line 26 of file profiler.h.

float memory_profiler::_baseline
private

Definition at line 24 of file profiler.h.

std::atomic< float > memory_profiler::_peak { 0 }
private

Definition at line 25 of file profiler.h.

std::atomic< float > memory_profiler::_s_peak
private

Definition at line 32 of file profiler.h.

float memory_profiler::_s_start = 0.f
private

Definition at line 31 of file profiler.h.

std::thread memory_profiler::_th
private

Definition at line 28 of file profiler.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:32