<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"><FONT
face=Arial color=#0000ff size=2></FONT><FONT face=Arial color=#0000ff
size=2></FONT><FONT face=Arial color=#0000ff size=2></FONT>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial
color=#0000ff size=2></FONT><FONT face=Arial color=#0000ff size=2></FONT><FONT
face=Arial color=#0000ff size=2></FONT><BR>if there's a common ancestor
allocating something (let's call it NewBlock() and it uses GetMem) and I have
many descendants using this method, is there a chance to find the "eater"
amongst these descendants or massif tool will drop all the stats to
NewBlock()?<BR><BR>Max<BR><BR><BR><SPAN class=921135409-15082011><FONT
face=Arial color=#0000ff size=2> </FONT></SPAN></DIV></BLOCKQUOTE>
<DIV><SPAN class=921135409-15082011><FONT face=Arial color=#0000ff size=2>Here
is part of the massif output from lazarus memory usage that shows what
you are looking for. The ms_print</FONT> <FONT face=Arial><FONT
color=#0000ff size=2>tool that comes with valgrind does the actual formatting.
massif and ms_print both have a threshold value which is the percentage below
which they don't report details. This is very helpfull in quickly finding
problem areas.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=921135409-15082011><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=921135409-15082011><FONT face=Arial color=#0000ff
size=2>100.00% (288,964,608B) (page allocation syscalls) mmap/mremap/brk,
--alloc-fns, etc.<BR>->37.20% (107,483,136B) 0x80C7DD3:
SYSTEM_FPSYSCALL$LONGINT$LONGINT$$LONGINT (in /home/ludo/lazarus/lazarus)<BR>|
->37.20% (107,483,136B) 0x80C86DF:
SYSTEM_FPMMAP$POINTER$LONGWORD$LONGINT$LONGINT$LONGINT$INT64$$POINTER (in
/home/ludo/lazarus/lazarus)<BR>| ->37.20% (107,483,136B)
0x80DE2EE: SYSTEM_SYSOSALLOC$LONGWORD$$POINTER (in
/home/ludo/lazarus/lazarus)<BR>| ->13.06%
(37,748,736B) 0x80DEFB7:
SYSTEM_ALLOC_OSCHUNK$PFREELISTS$LONGWORD$LONGWORD$$POINTER (in
/home/ludo/lazarus/lazarus)<BR>| | ->13.06%
(37,748,736B) 0x80DF396: SYSTEM_SYSGETMEM_VAR$LONGWORD$$POINTER (in
/home/ludo/lazarus/lazarus)<BR>| |
->10.52% (30,408,704B) 0x8382C3A:
LCONVENCODING_ISO_8859_1TOUTF8$ANSISTRING$$ANSISTRING
(lconvencoding.pas:4619)<BR>| | |
->10.52% (30,408,704B) 0x8389C25:
LCONVENCODING_CONVERTENCODING$ANSISTRING$ANSISTRING$ANSISTRING$$ANSISTRING
(lconvencoding.pas:6389)<BR>| |
| ->10.52% (30,408,704B) 0x81593E7:
MAIN_TMAINIDE_$__ONCODEBUFFERDECODELOADED$TCODEBUFFER$ANSISTRING$ANSISTRING$ANSISTRING$ANSISTRING
(main.pp:14590)<BR>| |
| ->10.52% (30,408,704B) 0x8368709:
CODECACHE_TCODECACHE_$__DECODELOADED$TCODEBUFFER$ANSISTRING$ANSISTRING$ANSISTRING$ANSISTRING
(codecache.pas:784)<BR>| |
| ->10.52% (30,408,704B) 0x8369C80:
CODECACHE_TCODEBUFFER_$__DECODELOADED$ANSISTRING$ANSISTRING$ANSISTRING$ANSISTRING
(codecache.pas:1153)<BR>| |
| ->10.52% (30,408,704B)
0x836D3D9: SOURCELOG_TSOURCELOG_$__LOADFROMFILE$ANSISTRING$$BOOLEAN
(sourcelog.pas:825)<BR>| |
| ->09.07%
(26,214,400B) 0x83697B0:
CODECACHE_TCODEBUFFER_$__LOADFROMFILE$ANSISTRING$$BOOLEAN
(codecache.pas:1045)<BR>| |
| | ->09.07%
(26,214,400B) 0x83671DF:
CODECACHE_TCODECACHE_$__LOADFILE$ANSISTRING$$TCODEBUFFER
(codecache.pas:347)<BR>| |
| |
->09.07% (26,214,400B) 0x83A63E1:
CODETOOLMANAGER_TCODETOOLMANAGER_$__LOADFILE$ANSISTRING$BOOLEAN$BOOLEAN$$TCODEBUFFER
(codetoolmanager.pas:1109)<BR>| |
|
| ->09.07% (26,214,400B) 0x85A0B18:
DIALOGPROCS_LOADCODEBUFFER$TCODEBUFFER$ANSISTRING$TLOADBUFFERFLAGS$BOOLEAN$$TMODALRESULT
(dialogprocs.pas:224)<BR>| |
|
| ->09.07% (26,214,400B) 0x813E5B7:
MAIN_TMAINIDE_$__DOOPENUNKNOWNFILE$ANSISTRING$TOPENFLAGS$TUNITINFO$BOOLEAN$$TMODALRESULT
(main.pp:6395)<BR>| |
|
| ->09.07% (26,214,400B)
0x8147F58: MAIN_TMAINIDE_$__DOOPENEDITORFILE$crc4B94F828
(main.pp:9380)<BR>| |
|
| ->09.07%
(26,214,400B) 0x8147565:
MAIN_TMAINIDE_$__DOOPENEDITORFILE$ANSISTRING$LONGINT$LONGINT$TOPENFLAGS$$TMODALRESULT
(main.pp:9123)<BR>| |
|
|
->09.07% (26,214,400B) 0x812EBE3: MAIN_TMAINIDE_$__SETUPSTARTPROJECT
(main.pp:2253)<BR>| |
|
|
->09.07% (26,214,400B) 0x812B951: MAIN_TMAINIDE_$__STARTIDE
(main.pp:1456)<BR>| |
|
|
->09.07% (26,214,400B) 0x80C7AFF: main
(lazarus.pp:113)<BR>| |
|
|
<BR>| |
| ->01.45%
(4,194,304B) 0x83698A2: CODECACHE_TCODEBUFFER_$__REVERT$$BOOLEAN
(codecache.pas:1081)<BR>| |
|
->01.45% (4,194,304B) 0x83A63F6:
CODETOOLMANAGER_TCODETOOLMANAGER_$__LOADFILE$ANSISTRING$BOOLEAN$BOOLEAN$$TCODEBUFFER
(codetoolmanager.pas:1112)<BR>| |
|
->01.45% (4,194,304B) 0x85A0B18:
DIALOGPROCS_LOADCODEBUFFER$TCODEBUFFER$ANSISTRING$TLOADBUFFERFLAGS$BOOLEAN$$TMODALRESULT
(dialogprocs.pas:224)<BR>| |
|
->01.45% (4,194,304B) 0x813E5B7:
MAIN_TMAINIDE_$__DOOPENUNKNOWNFILE$ANSISTRING$TOPENFLAGS$TUNITINFO$BOOLEAN$$TMODALRESULT
(main.pp:6395)<BR>| |
|
->01.45% (4,194,304B) 0x8147F58:
MAIN_TMAINIDE_$__DOOPENEDITORFILE$crc4B94F828
(main.pp:9380)<BR>| |
|
->01.45% (4,194,304B) 0x8147565:
MAIN_TMAINIDE_$__DOOPENEDITORFILE$ANSISTRING$LONGINT$LONGINT$TOPENFLAGS$$TMODALRESULT
(main.pp:9123)<BR>| |
|
->01.45% (4,194,304B) 0x812EBE3: MAIN_TMAINIDE_$__SETUPSTARTPROJECT
(main.pp:2253)<BR>| |
|
->01.45% (4,194,304B) 0x812B951: MAIN_TMAINIDE_$__STARTIDE
(main.pp:1456)<BR>| |
|
->01.45% (4,194,304B) 0x80C7AFF: main
(lazarus.pp:113)<BR>| |
|
<BR></FONT></SPAN></DIV>
<DIV><SPAN class=921135409-15082011><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=921135409-15082011><FONT face=Arial color=#0000ff
size=2>Ludo</DIV></FONT></SPAN></BODY></HTML>