in reply to Perl profiler

Have a look around the Devel:: namespace on CPAN. In particular Devel::LeakTrace might be of help.