How can I programmatically determine my Perl program's memory usage under Windows?

前端 未结 4 1726
既然无缘
既然无缘 2020-12-06 08:30

I use ActivePerl under Windows for my Perl script, so I can look at how much memory it uses via the \'Processes\' tab in Windows Task Manager.

I find having to do th

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-06 09:28

    Try:

    open( STAT , ";
    close( STAT );
    

    You can take a look at the "Determining memory usage of a process" and "Determining the Memory Usage of a Perl program from within Perl" on PerlMonks.

提交回复
热议问题