Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
In Release::Checklist, there's brief recommendation to use Test::LeakTrace as (re-phrasing) "help available to trace memory leaks to prevent crashes with out-of-memory after 4 days for long running process". OK.
use strict; use warnings; use Test::LeakTrace; use Text::CSV_XS 'csv'; leaktrace { csv( in => \'1,2' ); };
This script produces a long list of 'leaks'. So what?
Then an example method_cache.pl, included with distribution, reports 'leaks' as well. I see nothing wrong with the code block. Shouldn't I use code like this?
The Test::LeakTrace is ++-ed and at stage 4 up river. Checking reverse dependencies, there's e.g. List::MoreUtils (up-river itself), but (maybe I'm wrong) dependency on Test::LeakTrace seems auto generated and not actually used.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to use (interpret results from) Test::LeakTrace?
by Anonymous Monk on Dec 11, 2024 at 22:23 UTC | |
|
Re: How to use (interpret results from) Test::LeakTrace?
by Anonymous Monk on Dec 12, 2024 at 09:04 UTC |