source: git/Singular/HOWTO.FindMemoryHoles @ 50cbdc

spielwiese
Last change on this file since 50cbdc was 718add, checked in by Olaf Bachmann <obachman@…>, 23 years ago
* added git-svn-id: file:///usr/local/Singular/svn/trunk@4778 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 938 bytes
Line 
1Here is a first short HowTo on how to locate memory holes in Singular:
21.) Make sure you build with -DOM_TRACK=5 (e.g. use Singulart, Singularg).
32.) Use system("mtrack", [<level>, [<filename>]]) to get a report about
4    unused memory, where
5 * 0 <= level <= 5 determines how many stackframes per not freed
6   address are printed (default is 5 -- 0 only prints a summary)
7 * <filename> is name of file where report should be output to
8   (defaults to stdout).
93.) Runing 'regress.cmd -tt <level> file.tst' creates the file
10    'file.mtrack.unused' with report of not freed addresses (<level> has
11    same meaning as above).
124.) Within the C/C++ sources, Use 'omMarkAsStatic(addr)' to mark an
13    address as static, i.e. as an address which is ok if it is not
14    freed. Addresses marked this way are not reported by
15    system("mtrack",...) (resp. regress.cmd -tt).
165.) For some more details, see also extra.cc: system("mtrack", ...)
17
18
Note: See TracBrowser for help on using the repository browser.