diff options
author | James Bursa <james@netsurf-browser.org> | 2007-01-01 20:39:27 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2007-01-01 20:39:27 +0000 |
commit | bac8da24182aa9e577ad40667a4c0c2d5d769167 (patch) | |
tree | cc00024f2af083429862fa6c5d883bd8b8d3b42a /Docs | |
parent | d117eb452763e1da14c89b9a5379285b56d6ad78 (diff) | |
download | netsurf-bac8da24182aa9e577ad40667a4c0c2d5d769167.tar.gz netsurf-bac8da24182aa9e577ad40667a4c0c2d5d769167.tar.bz2 |
How to use dmalloc to find leaks.
svn path=/trunk/netsurf/; revision=3131
Diffstat (limited to 'Docs')
-rw-r--r-- | Docs/05-memory | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Docs/05-memory b/Docs/05-memory new file mode 100644 index 000000000..478743393 --- /dev/null +++ b/Docs/05-memory @@ -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. |