[dtrace-discuss] Getting total memory allocated so far

Lally Singh
Wed, 02 Jan 2008 13:25:54 -0000

Hey all, I''ve been trying to track memory usage in an application.
I''ve got probes into malloc() and free(), but I''d like to just
get a
total allocated amount at any given time (as malloc & free only give
me deltas, and buffer filling can make my running count worthless).

Is there any probe for that?  This is on Solaris 10, and I can
recompile the app as needed (but there are too many calls to malloc()
to directly instrument them or what not).  Would libumem help with
this?

Thanks in advance!

Btw, dtrace is a godsend.  Like a year less working on my PhD godsend.

--
H. Lally Singh
Ph.D. Candidate, Computer Science
Virginia Tech