On 15 Aug 2011, at 12:03, Ludo Brands wrote:

> 100.00% (288,964,608B) (page allocation syscalls) mmap/mremap/brk,
> --alloc-fns, etc.
> ->37.20% (107,483,136B) 0x80C7DD3: SYSTEM_FPSYSCALL$LONGINT$LONGINT$$LONGINT
> (in /home/ludo/lazarus/lazarus)
> | ->37.20% (107,483,136B) 0x80C86DF:
> SYSTEM_FPMMAP$POINTER$LONGWORD$LONGINT$LONGINT$LONGINT$INT64$$POINTER (in
> /home/ludo/lazarus/lazarus)
> |   ->37.20% (107,483,136B) 0x80DE2EE: SYSTEM_SYSOSALLOC$LONGWORD$$POINTER
> (in /home/ludo/lazarus/lazarus)

Note that if you want to see what part of the memory allocation is due to the 
program and what part due to internal fragmentation in the memory manager, you 
should compile with -gv (or add the "cmem" unit as the first unit to the 
uses-clause of Lazarus). Then the program will use libc's 
malloc/free/realloc/..., and Valgrind will be able to track every 
allocation/deallocation individually.


Jonas_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to