my $memdump = MemoryDump->new(); anyFunction(); print $memdump->diff(MemoryDump->new();