Re: track cpu usage of linux application

2007-05-15 Thread Fabian Braennstroem
Hi, thanks to both! I will take a look at the proc files! * James T. Dennis <[EMAIL PROTECTED]> wrote: > Fabian Braennstroem <[EMAIL PROTECTED]> wrote: >> Hi, > >>I would like to track the cpu usage of a couple of >>programs using python. Maybe it works somehow with >>piping 'top'

Re: track cpu usage of linux application

2007-05-14 Thread James T. Dennis
Fabian Braennstroem <[EMAIL PROTECTED]> wrote: > Hi, >I would like to track the cpu usage of a couple of >programs using python. Maybe it works somehow with >piping 'top' to python read the cpu load for a greped >application and clocking the the first and last >appearence. Is t

Re: track cpu usage of linux application

2007-05-14 Thread Zed A. Shaw
On Mon, 14 May 2007 20:56:20 + Fabian Braennstroem <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to track the cpu usage of a couple of > programs using python. Maybe it works somehow with > piping 'top' to python read the cpu load for a greped > application and clocking th

track cpu usage of linux application

2007-05-14 Thread Fabian Braennstroem
Hi, I would like to track the cpu usage of a couple of programs using python. Maybe it works somehow with piping 'top' to python read the cpu load for a greped application and clocking the the first and last appearence. Is that a good approach or does anyone have a more ele