memory allocation reporting?

J

Joey Marino

[Note: parts of this message were removed to make it a legal post.]

I created a script that using up alot of memory very quickly. All the
resources like file handles, db results, and objects are being freed. I am
using a third party library so I am wondering if the problem lies with their
code.
My question is what would I use to make a report showing how much memory is
being allocated by which objects, methods and variables. I remember a
professor doing something like this with run times in c++ with the gcc
compiler.
 
G

Glen Holcomb

[Note: parts of this message were removed to make it a legal post.]

I created a script that using up alot of memory very quickly. All the
resources like file handles, db results, and objects are being freed. I am
using a third party library so I am wondering if the problem lies with
their
code.
My question is what would I use to make a report showing how much memory
is
being allocated by which objects, methods and variables. I remember a
professor doing something like this with run times in c++ with the gcc
compiler.

You could try Bleakhouse or mem-inspect.

**Disclaimer - I've used neither of these gems
 
A

ara howard

I created a script that using up alot of memory very quickly. All the
resources like file handles, db results, and objects are being
freed. I am
using a third party library so I am wondering if the problem lies
with their
code.
My question is what would I use to make a report showing how much
memory is
being allocated by which objects, methods and variables. I remember a
professor doing something like this with run times in c++ with the gcc
compiler.

the simplest way to see what's happening is probably dike

gem install dike

http://codeforpeople.com/lib/ruby/dike/dike-0.0.4/README

take a snapshot before and after an allocation by the lib the use dike
to do a diff.

regards.

a @ http://codeforpeople.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,787
Messages
2,569,629
Members
45,329
Latest member
InezZ76898

Latest Threads

Top