Skip to content

Commit

Permalink
t/testc.sh: measure rss memory usage
Browse files Browse the repository at this point in the history
with DynaLoader and IO::Scalar
perlall -m make '-e0; echo $p; t/testc.sh -q 1942'

t/testc.sh -q 1942 (PerlIO::scalar, DynaLoader, Config)
                        rss  vsz
cperl5.22.2-nt-avcog    2524 2438744
                   -O3  2536 2447956
cperl5.22.2d-nt-avcog 	3516 2451728
perl5.22.1-nt           3316 2438912
perl5.20.3-nt           3264 2438696
perl5.18.2-nt           3036 2438468
perl5.18.4d             4276 2450540
perl5.18.4d-nt          4120 2451332
perl5.16.3              4072 2458904
perl5.16.3-nt           3008 2438420
perl5.14.4              3168 2447764
perl5.14.4-nt           2944 2447540
perl5.14.4-nt -O3       2852 2447472
perl5.12.5              3440 2449964
perl5.12.5-nt           3244 2447716
perl5.10.1-nt           3172 2456836
perl5.8.9               3176 2465976
perl5.8.9d-nt           3096 2438400
perl5.8.5d-nt           3228 2456836
perl5.8.4d-nt           3176 2457792
perl5.6.2d-nt           1764 2437408
  • Loading branch information
Reini Urban committed Feb 3, 2016
1 parent 21bc3ec commit 409eee6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .gdbinit
Expand Up @@ -6,8 +6,9 @@ set breakpoint pending on
#source .gdb/dashboard
source .gdb/perl

b dl_boot
b dl_generic_private_init
#b dl_boot
#b dl_generic_private_init
#b av.c

#break __asan_report_error
#b Perl_pp_multideref
Expand Down
4 changes: 4 additions & 0 deletions t/testc.sh
Expand Up @@ -785,6 +785,10 @@ print ($s =~ /ccdave with long name/ ? q(ok) : $s);'
tests[1941]='$0 = q{ccdave}; #print "pid: $$\n";
$s=`ps auxw | grep "$$" | grep "ccdave"|grep -v grep`;
print q(ok) if $s =~ /ccdave/'
# VmRSS memory usage
tests[1942]='$s=<DATA>;print `ps -p $$ -O rss,vsz,pmem`;
__DATA__
a'
# duplicate of 152
tests[195]='use PerlIO; eval { require PerlIO::scalar }; find PerlIO::Layer "scalar"; print q(ok)'
tests[196]='package Foo;
Expand Down

0 comments on commit 409eee6

Please sign in to comment.