STXXL  1.4-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
malloc_count.h File Reference
#include <cstdlib>

Go to the source code of this file.

Typedefs

typedef void(* malloc_count_callback_type )(void *cookie, size_t current)
 

Functions

size_t malloc_count_current (void)
 
size_t malloc_count_peak (void)
 
void malloc_count_print_status (void)
 
void malloc_count_reset_peak (void)
 
void malloc_count_set_callback (malloc_count_callback_type cb, void *cookie)
 

Typedef Documentation

typedef void(* malloc_count_callback_type)(void *cookie, size_t current)

Definition at line 39 of file malloc_count.h.

Function Documentation

size_t malloc_count_current ( void  )

Definition at line 100 of file malloc_count.cpp.

References curr.

size_t malloc_count_peak ( void  )

Definition at line 106 of file malloc_count.cpp.

References peak.

void malloc_count_print_status ( void  )

Definition at line 118 of file malloc_count.cpp.

References curr, peak, and PPREFIX.

void malloc_count_reset_peak ( void  )

Definition at line 112 of file malloc_count.cpp.

References curr, and peak.

void malloc_count_set_callback ( malloc_count_callback_type  cb,
void *  cookie 
)

Definition at line 125 of file malloc_count.cpp.

References callback, and callback_cookie.