http://qs1969.pair.com?node_id=794318


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 (Patriarch) 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.