[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: may be memory leak
From: |
Hideki IWAMOTO |
Subject: |
Re: may be memory leak |
Date: |
Sun, 01 Jul 2007 22:36:15 +0900 |
I committed some fixes. I think that current memory usage is acceptable.
==== version 5.5 ====
[linux-2.0.40]$ ltrace -c -e malloc,free,realloc,calloc global -x '.*'>/dev/null
% time seconds usecs/call calls function
------ ----------- ----------- --------- --------------------
53.45 0.040242 45 886 malloc
45.41 0.034185 38 891 free
0.96 0.000722 48 15 calloc
0.18 0.000134 44 3 realloc
------ ----------- ----------- --------- --------------------
100.00 0.075283 1795 total
[linux-2.0.40]$ ltrace -c -e malloc,free,realloc,calloc global -rx '.*' >
/dev/null
% time seconds usecs/call calls function
------ ----------- ----------- --------- --------------------
45.99 15.455169 171 90196 calloc
34.14 11.471807 126 91043 malloc
19.78 6.646765 96 69198 realloc
0.10 0.032632 37 865 free
------ ----------- ----------- --------- --------------------
100.00 33.606373 251302 total
[linux-2.0.40]$ ltrace -c -e malloc,free,realloc,calloc global -sx '.*' >
/dev/null
% time seconds usecs/call calls function
------ ----------- ----------- --------- --------------------
57.57 19.814507 198 99646 calloc
28.57 9.831705 97 100599 malloc
13.75 4.733486 66 71576 realloc
0.10 0.035940 37 971 free
------ ----------- ----------- --------- --------------------
100.00 34.415638 272792 total
==== CVS head ====
[linux-2.0.40]$ ltrace -c -e malloc,free,realloc,calloc global -x '.*' >
/dev/null
% time seconds usecs/call calls function
------ ----------- ----------- --------- --------------------
53.00 0.039911 45 881 malloc
46.02 0.034654 38 891 free
0.82 0.000614 47 13 calloc
0.17 0.000131 43 3 realloc
------ ----------- ----------- --------- --------------------
100.00 0.075310 1788 total
[linux-2.0.40]$ ltrace -c -e malloc,free,realloc,calloc global -rx '.*' >
/dev/null
% time seconds usecs/call calls function
------ ----------- ----------- --------- --------------------
52.69 0.038929 45 857 malloc
46.10 0.034061 39 867 free
0.76 0.000558 42 13 calloc
0.45 0.000334 47 7 realloc
------ ----------- ----------- --------- --------------------
100.00 0.073882 1744 total
[linux-2.0.40]$ ltrace -c -e malloc,free,realloc,calloc global -sx '.*' >
/dev/null
% time seconds usecs/call calls function
------ ----------- ----------- --------- --------------------
52.72 0.043971 45 963 malloc
46.28 0.038602 39 973 free
0.67 0.000560 43 13 calloc
0.33 0.000279 46 6 realloc
------ ----------- ----------- --------- --------------------
100.00 0.083412 1955 total
----
Hideki IWAMOTO address@hidden
- Re: may be memory leak,
Hideki IWAMOTO <=