开发者

Memory usage within perl

开发者 https://www.devze.com 2023-02-17 10:58 出处:网络
I have been looking for a perl\'s internal variable or module than can give me the memory usage for variables/hashes/arrays and called within the script I am analyzing .. for the script\'s used memory

I have been looking for a perl's internal variable or module than can give me the memory usage for variables/hashes/arrays and called within the script I am analyzing .. for the script's used memory I found:

open( STAT , "</p开发者_如何学Goroc/$$/stat" )
or die "Unable to open stat file";
@stat = split /\s+/ , <STAT>;
close( STAT );

but I want to track a particular variable not the process' memory.

Does something like that exist???


You should look at the Devel::Size module.

0

精彩评论

暂无评论...
验证码 换一张
取 消