caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Memory Consumption and Profiling.
@ 2003-01-28 16:01 Tom Hawkins
  0 siblings, 0 replies; only message in thread
From: Tom Hawkins @ 2003-01-28 16:01 UTC (permalink / raw)
  To: caml-list

Hi,

Can anyone offer tips for profiling a program for memory consumption?

One of my native compiled applications consumes a too much memory
and I'm having a hard time tracking down the source.  I did time 
profiling with gprof and here are the top four consumers:

Flat profile:

Each sample counts as 0.01 seconds.
  %   cumulative   self              self     total
 time   seconds   seconds    calls   s/call   s/call  name
 21.66      2.38     2.38     1040     0.00     0.00  mark_slice
 12.28      3.73     1.35     1035     0.00     0.00  sweep_slice
 10.19      4.85     1.12 13611466     0.00     0.00  compare_val
  4.73      5.37     0.52  1804453     0.00     0.00  Hashtbl__find_117

I'm assuming mark_slice and sweep_slice are part of the garbage collector.
The nature of the program does create a lot of small data structures with
short life span, and my hunch this is where the problem lies.

Any tips?

Thanks,

Tom

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-28 15:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-28 16:01 [Caml-list] Memory Consumption and Profiling Tom Hawkins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).