man rmdbg (Fonctions bibliothèques) - Roy memory debugging

NAME

rmdbg - Roy memory debugging

SYNOPSIS

#include <roy.h>

void rmdbg_set_outfile (char *filename);

DESCRIPTION

The rmdbg facility provides logging of the usage of all Roy APIs that allocate or free memory. While many memory debuggers give you low level information about what your applications are doing, this one provides information at the API level, which seems to make it easier to figure out what is happening. It will also provide full backtraces if used with a modern version of GCC.

In order to take advantage of rmdbg, you must build your application with RMDBG_ENABLED defined (usually by using -DRMDBG_ENABLED=1 with the compiler). Do NOT compile Roy with RMDBG_ENABLED, it will not build - only your application and libraries using roy should be built with it.

When the application is run, it will generate a rmdbg.out file (by default) which can be parsed with rmdbgtool(1), generating a memory usage report.

rmdbg_set_outfile(3) may be used to set the output file name. If set to NULL, no logging is performed.

SEE ALSO