in reply to Re: Perl object memory overhead
in thread Perl object memory overhead

> system "ps -o vsz= -p $$";

do you happen to know how to best replicate this on windows?

FWIW: I was experimenting with something like

PS D:\tmp\pm> perl -e'print `powershell (ps -id $$).pm`' 1564672

not sure if there is a better way (or if it's fully equivalent).

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^3: Perl object memory overhead
by shmem (Chancellor) on Feb 12, 2021 at 00:53 UTC

    Sadly (or not :-) no. I don't do Windows if I can avoid it, only on specific points if needed. In which cases almost always perl provides me longbow and sword to attack the enemy's bugs, e.g. patching binaries inplace or such :P

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'