Package : perl-Test-MemoryGrowth > RPM : perl-Test-MemoryGrowth-0.40.0-2.mga9.src.rpm

Basic items

Name perl-Test-MemoryGrowth
Version 0.40.0
Release 2.mga9
URL https://metacpan.org/release/Test-MemoryGrowth
Group Development/Perl
Summary Assert that code does not cause growth in memory usage
Size 18KB
Arch noarch
License GPLv1+ or Artistic

Description

This module provides a function to check that a given block of code does
not result in the process consuming extra memory once it has finished.
Despite the name of this module it does not, in the strictest sense of the
word, test for a memory leak: that term is specifically applied to cases
where memory has been allocated but all record of it has been lost, so it
cannot possibly be reclaimed. While the method employed by this module can
detect such bugs, it can also detect cases where memory is still referenced
and reachable, but the usage has grown more than would be expected or
necessary.

The block of code will be run a large number of times (by default 10,000),
and the difference in memory usage by the process before and after is
compared. If the memory usage has now increased by more than one byte per
call, then the test fails.

In order to give the code a chance to load initial resources it needs, it
will be run a few times first (by default 10); giving it a chance to load
files, AUTOLOADs, caches, or any other information that it requires. Any
extra memory usage here will not count against it.

Media information

Distribution release Mageia cauldron
Media name core-release
Media arch i586

Advanced items

Source RPM NOT IN DATABASE ?!
Build time 2022-03-21 09:47:24
Changelog View in Sophie
Files View in Sophie
Dependencies View in Sophie