Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Perl object memory overhead

by LanX (Saint)
on Feb 10, 2021 at 23:54 UTC ( [id://11128204]=note: print w/replies, xml ) Need Help??


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'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11128204]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-24 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found