Re: Looking for a convenient way in C to retrieve CPU and memory usage of a process

2009-12-27 Thread Matthew Seaman
Manish Jain wrote: I am looking for a convenient way using C to retrieve the current CPU and memory utilization of a process of which I have the pid. Can somebody please give me a hint of which system-calls/library-functions to use for this ? I don't want to use the system() function or grep

Re: Looking for a convenient way in C to retrieve CPU and memory usage of a process

2009-12-27 Thread b. f.
I am looking for a convenient way using C to retrieve the current CPU and memory utilization of a process of which I have the pid. Can somebody please give me a hint of which system-calls/library-functions to use for this ? I don't want to use the system() function or grep for information via the

Looking for a convenient way in C to retrieve CPU and memory usage of a process

2009-12-26 Thread Manish Jain
Hello, I am looking for a convenient way using C to retrieve the current CPU and memory utilization of a process of which I have the pid. Can somebody please give me a hint of which system-calls/library-functions to use for this ? I don't want to use the system() function or grep for