SCI/FreeSCI/Debugger/Console interaction with dmalloc
Console interaction with dmalloc
The FreeSCI console proivdes an interface to the dmalloc memory debugger/profiler, if the interpreter was compiled with dmalloc support enabled. The following commands are provided:
- dm_log_heap
- Prints the current heap state into the dmalloc log file.
- dm_stats
- Prints memory usage statistics to the output file.
- dm_log_unfreed
- Lists unfreed pointers in the dmalloc output file.
- dm_verify (pointer)
- Verifies a pointer and prints the result to the dmalloc output file. Specifying 0 instead of a pointer will verify all pointers currently known to dmalloc.
- dm_debug (mode)
- Sets the dmalloc debug flags (please refer to the dmalloc documentation for a description).
- dm_mark
- Gets a mark describing the current heap situation (see also 'dm_chmark').
- dm_chmark (mark)
- Compares a mark retreived by 'dm_mark' with the current heap situation, and prints the results to the dmalloc output file.
- dm_print (output)
- Prints arbitrary output to the dmalloc output file.