在Perl程序上分析堆内存使用情况 [英] Profiling heap memory usage on perl programs

查看:82
本文介绍了在Perl程序上分析堆内存使用情况的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编写了一个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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆