Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Getting a memory dump

by erroneousBollock (Curate)
on Nov 23, 2007 at 08:15 UTC ( #652523=note: print w/replies, xml ) Need Help??


in reply to Re^2: Getting a memory dump
in thread Getting a memory dump

I was rather thinking of something a bit more structured that would list each variable with its attributes and references broken out.
Do you have an example of such a facility in some other language?

Historically, various tools were used to examine a dump corefile, but I've not seen language-specific nor human-readable dumps before.

Aside from perl variables, all kinds of things will be on the heap for your perl process (eg: things allocated by libraries wrapped in XS interfaces).

-David

Replies are listed 'Best First'.
Re^4: Getting a memory dump
by awy (Acolyte) on Nov 23, 2007 at 08:32 UTC
    Yes, this is something you can do in Java. The Sun JVM hprof format (and similar formats for other JVMs) is not exactly human-readable but there are quite a number of tools capable of reading and analysing such dumps. The point is that the data is structured in a format amenable to analysis.

    I realise that libraries and XS code may be responsible but somehow I suspect that this is less likely in my case.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://652523]
help
Chatterbox?
[GotToBTru]: I appreciate the ability to highlight matching brackets/ parentheses/ braces, both for my own code and the inconsistently indented code of others
[Corion]: I like editors that automatically highlight the matching parenthesis (like % in vi), but that's roughly the extent to which I like editor support ;)
[GotToBTru]: same here Corion.
[Corion]: I tried for a short time (well, 8 hours now) to get Perl::Tidy set up but then found that it doesn't support (new-style) signatures and then stopped again ;))
[GotToBTru]: changing the font color of the rest of the document just because I typed a single quote character is annoying

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2017-02-27 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (385 votes). Check out past polls.