mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 12:36:51 +03:00
How to use dmalloc to find leaks.
svn path=/trunk/netsurf/; revision=3131
This commit is contained in:
parent
d117eb4527
commit
bac8da2418
19
Docs/05-memory
Normal file
19
Docs/05-memory
Normal file
@ -0,0 +1,19 @@
|
||||
Memory management
|
||||
=================
|
||||
|
||||
This section describes memory management. See Error handling for how memory
|
||||
exhaustion is handled.
|
||||
|
||||
Finding leaks on RISC OS
|
||||
------------------------
|
||||
Memory allocation can be traced and leaks can be found using dmalloc.
|
||||
|
||||
Install dmalloc from the riscos.info autobuilder. Set the environment variable
|
||||
TLINK_MEMCHECK=dmalloc and re-link !RunImage.
|
||||
|
||||
On RISC OS,
|
||||
|
||||
*Set DMALLOC_OPTIONS debug=0x2,log=dmalloc_log
|
||||
|
||||
set the working directory to a RAM disc, and run NetSurf. When it quits,
|
||||
dmalloc_log will contain a list of unfreed blocks.
|
Loading…
Reference in New Issue
Block a user