All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_Memory Class Reference

#include <UT_Memory.h>

+ Inheritance diagram for UT_Memory:

Static Public Member Functions

static void printMemory (char *buffer, const char *label, size_t used, size_t peak, int indent=3)
static size_t printMemory (UT_WorkBuffer &buffer, SYS_MemoryTable &table, int indent=3, bool sort_by_peak=false)

Detailed Description

Definition at line 34 of file UT_Memory.h.

Member Function Documentation

static void UT_Memory::printMemory ( char *  buffer,
const char *  label,
size_t  used,
size_t  peak,
int  indent = 3 

Print the memory in a "nice" (well at least standard) format. The buffer passed in should be at least 80 characters long.

static size_t UT_Memory::printMemory ( UT_WorkBuffer buffer,
SYS_MemoryTable table,
int  indent = 3,
bool  sort_by_peak = false 

Print an entire table of memory users. This printer assumes that each user's label will fit into a 15 character buffer (for formatting) The total memory accounted for is returned.

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