DBD-Pg

 view release on metacpan or  search on metacpan

testme.tmp.pl  view on Meta::CPAN

    while (1) {

        last if $runs++ >= $maxsize;

        &$sub();

        unless ($runs % $count) {
            printf "Cycles: %d\tProc size: %uK\n",
                  $runs,
                  (-f "/proc/$$/stat")
                  ? do { local @ARGV="/proc/$$/stat"; (split (/\s/, <>))[22] / 1024 }
                  : -1;
        }


    }

} ## end of leakcheck

__END__



( run in 0.640 second using v1.01-cache-2.11-cpan-a5abf4f5562 )