in reply to Re: Determining the Memory Usage of a Perl program from within Perl
in thread Determining the Memory Usage of a Perl program from within Perl

The Linux /proc fs is pretty nice because all of the data there (or what I found in there) is ascii readable. However, anyone know how to parse out the binary data in the Solaris /proc fs? I have never ever ever done any kind of parsing of data (non-ascii) in my life and while I know the basic I idea behind it I have no idea how to do it in Perl (or any other language for that matter :). Perhaps a few pointers? I have a feeling that it can be done with the '&' bitwise operator (I saw a script that did it that way one time) but I believe you need the offset for that to work?? I dunno. Any help on this subject would be quite appreciated.

----------
- Jim

  • Comment on Re: Re: Determining the Memory Usage of a Perl program from within Perl

Replies are listed 'Best First'.
Re^3: Determining the Memory Usage of a Perl program from within Perl
by hippo (Archbishop) on Oct 16, 2021 at 11:06 UTC

    For anyone still looking for such a thing, there is Solaris::Procfs which appears to be a slightly higher-level interface. I have not used it, so this is just a pointer rather than a recommendation.


    🦛