[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Session leader and accumulated CPU time..



Folks,
 Is there a "C" program that will get the accumulated "CPU"
 time and "memory" of a session leader. I do *not* want a 
 perl or script solution (i.e ps aux and adding it all up).

 What I am looking for is something like this, I create a
 session leader proc and it might spawn 10 procs when the
 the program ends, how can I capture the accumulated CPU 
 time of all the procs that the session leader spawned?

 Thanks in advance
 Mohan