I have a perl program that forks like it's no tomorrow... I want to know the total memory usage at any given time. This seems tricky to me since much of the memory (most of the perl interpreter, in fact) is shared between all processes. I would also like to know the total CPU time used, including from child processes that may have died.
The Proc::ProcessTable will give me many useful fields, but it seems I may have to add some of these numbers together in order to get what I want.
Originally posted as a Categorized Question.