mirror of
https://github.com/curl/curl.git
synced 2026-04-14 23:51:42 +03:00
memdebug: stop tracking send and recv
- they rarely catch any problems - we have other ways to test different send/recv problems - the number of such calls vary much more per invoke than others, making memdebugging harder - reducing the total number of fallible functions per test is good - they were not used as intended anyway Closes #20097
This commit is contained in:
parent
d4b62bff64
commit
a585cc35e5
8 changed files with 6 additions and 67 deletions
|
|
@ -63,8 +63,6 @@ sub memanalyze {
|
|||
my $reallocs = 0;
|
||||
my $strdups = 0;
|
||||
my $wcsdups = 0;
|
||||
my $sends = 0;
|
||||
my $recvs = 0;
|
||||
my $sockets = 0;
|
||||
|
||||
$memsum = 0; # the total number of memory allocated over the lifetime
|
||||
|
|
@ -346,14 +344,6 @@ sub memanalyze {
|
|||
elsif($_ =~ /^GETNAME ([^ ]*):(\d*) (.*)/) {
|
||||
# not much to do
|
||||
}
|
||||
# SEND url.c:1901 send(83) = 83
|
||||
elsif($_ =~ /^SEND ([^ ]*):(\d*) (.*)/) {
|
||||
$sends++;
|
||||
}
|
||||
# RECV url.c:1901 recv(102400) = 256
|
||||
elsif($_ =~ /^RECV ([^ ]*):(\d*) (.*)/) {
|
||||
$recvs++;
|
||||
}
|
||||
|
||||
# ADDR url.c:1282 getaddrinfo() = 0x5ddd
|
||||
elsif($_ =~ /^ADDR ([^ ]*):(\d*) (.*)/) {
|
||||
|
|
@ -445,11 +435,9 @@ sub memanalyze {
|
|||
"Strdups: $strdups\n",
|
||||
"Wcsdups: $wcsdups\n",
|
||||
"Frees: $frees\n",
|
||||
"Sends: $sends\n",
|
||||
"Recvs: $recvs\n",
|
||||
"Sockets: $sockets\n",
|
||||
"Allocations: ".($mallocs + $callocs + $reallocs + $strdups + $wcsdups)."\n",
|
||||
"Operations: ".($mallocs + $callocs + $reallocs + $strdups + $wcsdups + $sends + $recvs + $sockets)."\n",
|
||||
"Operations: ".($mallocs + $callocs + $reallocs + $strdups + $wcsdups + $sockets)."\n",
|
||||
"Maximum allocated: $maxmem\n",
|
||||
"Total allocated: $memsum\n";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue