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
