在Perl程序上分析堆内存使用情况 [英] Profiling heap memory usage on perl programs
问题描述
我已经编写了一个perl程序来对庞大的数据集进行操作.我正在尝试根据其内存使用情况来分析其执行情况.在小型数据集上使用valgrind进行了尝试,但它显着降低了执行速度.我只是在寻找堆分析. 你们可以建议一些方法吗?
I have written a perl program to operate on huge datasets. I am trying to profile its excution in terms of its memory usage. Tried using valgrind on small datasets, but it slows down the execution dramatically. I am looking for just heap profiling. Could you guys suggest some ways ?
推荐答案
当我使用Google和搜索词"perl memory profile"时,第一个 Devel::Size
作为发现内存使用情况的一种方法.还有一些内存泄漏检测器模块在附近徘徊.
When I used Google and the search term 'perl memory profile', one of the first items points to the Perl module Devel::Size
as one way of spotting memory usage. There are also memory leak detector modules lurking around.
这篇关于在Perl程序上分析堆内存使用情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!