projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4799d39
)
produce a single summary of the amount of allocations on -v
author
Daniel Stenberg
<daniel@haxx.se>
Fri, 24 Oct 2003 08:09:33 +0000
(08:09 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Fri, 24 Oct 2003 08:09:33 +0000
(08:09 +0000)
tests/memanalyze.pl
patch
|
blob
|
history
diff --git
a/tests/memanalyze.pl
b/tests/memanalyze.pl
index
dff25a8
..
4c1f763
100755
(executable)
--- a/
tests/memanalyze.pl
+++ b/
tests/memanalyze.pl
@@
-6,6
+6,10
@@
# MEM mprintf.c:1103 realloc(e5718, 64) = e6118
# MEM sendf.c:232 free(f6520)
+my $mallocs=0;
+my $reallocs=0;
+my $strdups=0;
+
while(1) {
if($ARGV[0] eq "-v") {
$verbose=1;
@@
-287,7
+291,8
@@
if($verbose) {
print "Mallocs: $mallocs\n",
"Reallocs: $reallocs\n",
"Strdups: $strdups\n",
- "Frees: $frees\n";
+ "Frees: $frees\n",
+ "Allocations: ".($mallocs + $reallocs + $strdups)."\n";
print "Maximum allocated: $maxmem\n";
}