Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
Memstat Namespace Reference

Classes

struct  SCustomDigest
 
struct  SFind_t
 
class  TMemStatFAddrContainer
 
class  TMemStatMng
 
struct  ToLower_t
 

Functions

size_t builtin_return_address (void **_container, size_t _limit)
 
void demangle (char *_codeInfo, TString &_str)
 demangle symbols
 
std::string dig2bytes (Long64_t bytes)
 This function creates a string representation of the number of bytes, represented as a number in B, kB, MB or GB depending on the value.
 
template<class T >
Int_t find_string (const T &_Container, const TString &_ToFind)
 
size_t getBacktrace (void **_trace, size_t _size, Bool_t _bUseGNUBuiltinBacktrace)
 Get the backtrace _trace - array of pointers _size - maximal deepness of stack information _bUseGNUBuiltinBacktrace - whether to use gcc builtin backtrace or C library one.
 
void getSymbolFullInfo (void *_pAddr, TString *_retInfo, const char *const _seporator=" | ")
 
int getSymbols (void *_pAddr, TString &, TString &_strLib, TString &_strSymbol)
 get the name of the function and library
 
bool operator< (const SCustomDigest &a, const SCustomDigest &b)
 
static voidreturn_address (int _frame)
 we have a limit on the depth = 35
 

Variables

const size_t g_BTStackLevel = 50
 
const UShort_t g_digestSize = 16
 

Function Documentation

◆ builtin_return_address()

size_t Memstat::builtin_return_address ( void **  _container,
size_t  _limit 
)

Definition at line 121 of file TMemStatBacktrace.cxx.

◆ demangle()

void Memstat::demangle ( char *  _codeInfo,
TString _str 
)

demangle symbols

Definition at line 211 of file TMemStatBacktrace.cxx.

◆ dig2bytes()

string Memstat::dig2bytes ( Long64_t  bytes)

This function creates a string representation of the number of bytes, represented as a number in B, kB, MB or GB depending on the value.

The result is rounded to a sensible number of digits

Definition at line 26 of file TMemStatHelpers.cxx.

◆ find_string()

template<class T >
Int_t Memstat::find_string ( const T &  _Container,
const TString _ToFind 
)

Definition at line 42 of file TMemStatHelpers.h.

◆ getBacktrace()

size_t Memstat::getBacktrace ( void **  _trace,
size_t  _size,
Bool_t  _bUseGNUBuiltinBacktrace 
)

Get the backtrace _trace - array of pointers _size - maximal deepness of stack information _bUseGNUBuiltinBacktrace - whether to use gcc builtin backtrace or C library one.

The builtin version is much faster, but very sensitive and in some conditions could fail to return a proper result. return value = min(stack deepness, dsize)

Definition at line 138 of file TMemStatBacktrace.cxx.

◆ getSymbolFullInfo()

void Memstat::getSymbolFullInfo ( void _pAddr,
TString _retInfo,
const char *const  _seporator = " | " 
)

Definition at line 185 of file TMemStatBacktrace.cxx.

◆ getSymbols()

int Memstat::getSymbols ( void _pAddr,
TString _strInfo,
TString _strLib,
TString _strSymbol 
)

get the name of the function and library

Definition at line 155 of file TMemStatBacktrace.cxx.

◆ operator<()

bool Memstat::operator< ( const SCustomDigest a,
const SCustomDigest b 
)
inline

Definition at line 65 of file TMemStatMng.h.

◆ return_address()

static void * Memstat::return_address ( int  _frame)
static

we have a limit on the depth = 35

Definition at line 70 of file TMemStatBacktrace.cxx.

Variable Documentation

◆ g_BTStackLevel

const size_t Memstat::g_BTStackLevel = 50

Definition at line 17 of file TMemStatDef.h.

◆ g_digestSize

const UShort_t Memstat::g_digestSize = 16

Definition at line 54 of file TMemStatMng.h.