http://www.usenet-forums.com/linux-general/74456-logging-cpu-usage.html

Utilities already exist. Putting together a simple shell script does the
logging part. That aside, your idea is correct.

On 15/04/2008, timgoh0 <[EMAIL PROTECTED]> wrote:
>
> Have you considered a combination of valgrind with the Massif
> tool(http://valgrind.org/docs/manual/ms-manual.html) and gprof for cpu
> usage?
>
>
>
> On Tue, 2008-04-15 at 11:54 +0800, darren wrote:
> > Hi,
> >
> > I have written a simple app in C and am currently testing it. I would
> > like
> > to know how much CPU and ram it is consuming over a period of 1 or 2
> > days.
> >
> > Currently, I am just reading this off via top and adding it to a
> > logfile. Is
> > this accurate, esp where memory utilisation is concerned?
> >
>
>
>
> _______________________________________________
> Slugnet mailing list
> [email protected]
> http://wiki.lugs.org.sg/LugsMailingListFaq
> http://www.lugs.org.sg/mailman/listinfo/slugnet
>
_______________________________________________
Slugnet mailing list
[email protected]
http://wiki.lugs.org.sg/LugsMailingListFaq
http://www.lugs.org.sg/mailman/listinfo/slugnet

Reply via email to