[Ilugc] Profiling a C program.

  • From: techie2go@xxxxxxxxx (Gowthaman Basuvaraj)
  • Date: Thu Mar 13 06:16:05 2008

Hello,
from my understanding the sampling time is about .01 seconds, i tried in
vain of how to increase  the sampling rate, so if you have very less
functions and less number of calls, then the result will mostly be 0.0 only,
try writing a resursively calling function(fibonacci say example) and try
profiling
Gowthaman

On Thu, Mar 13, 2008 at 4:38 AM, Sriram Karra <skarra@xxxxxxxxx> wrote:

On Wed, Mar 12, 2008 at 6:30 PM, Logu <logulinux@xxxxxxx> wrote:

I am trying to profile a simple C program, but I am not getting correct
values under the  "cumulative seconds"  and "self seconds" column for
the
functions. I always get them as 0.00.


One thing you could try - invoke the function more times, and average.
Perhaps the function is not clocking enough time to make an appreciable
impact. Just maybe...
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc




-- 
A samurai once asked Zen Master Hakuin where he would go after he died.
Hakuin answered 'How am I supposed to know?'
'How do you not know? You're a Zen master!' exclaimed the samurai.
'Yes, but not a dead one,' Hakuin answered.

-- Zen proverbs
??????????? ????????????
??????????? ???? ???????
????? ????? ???? ???????
??????? ??????? ??? ???????
??????? ??????? ???????? ????? ?????
-- ?????? ?????? ?????????

Other related posts: