Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: how much memory each Perl variable uses

by amir_e_a (Hermit)
on Sep 09, 2009 at 10:42 UTC ( #794318=note: print w/replies, xml ) Need Help??


in reply to Re: how much memory each Perl variable uses
in thread how much memory each Perl variable uses

Thanks a lot! This looks like the right direction, but for some reason on my machine it immediately crashes:

7 [main] perl 4156 _cygtls::handle_exceptions: Error while dumping sta +te (probably corrupted stack) Segmentation fault (core dumped)
Maybe Devel::Size can't work on Cygwin? (Strange, but possible...)

Replies are listed 'Best First'.
Re^3: how much memory each Perl variable uses
by BrowserUk (Pope) on Sep 09, 2009 at 11:20 UTC
    Maybe Devel::Size can't work on Cygwin? (Strange, but possible...)

    It only inspects Perl's internal structures, so should run anywhere Perl does, but since I don't use Cygwin, I neither know nor care.

    Why not run your script native for the purposes of solving your problem? Either on a native *nix platform if that's your target and your reason for using Cygwin (though developing under an emulator is a silly idea). Or native Win32 if that your target. (If so, why use the emulator?)


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      The target is not supposed to be important.

      I'd love to run it on Linux in principle, and it would be faster, too, but i don't have a Linux machine anywhere around.

      I use Cygwin Perl, because on Windows it's the friendliest environment for installing CPAN packages. Strawberry Perl tries to be friendly, but from my experience it isn't mature enough. ActivePerl is not CPAN-friendly at all.

        If you must run *nix on top of windows, get a VM and run the real thing in there.


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2019-12-10 09:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?