How do we profile our code?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings,
    Hi I wanted to profile time taken by a particular funtion in an
application. I had been using gettimeofday() till now and calculating the
time diff b/w the call of the function and its return.
    I read in a forum that even though it shows a resolution of microseconds
it is incorrect. The true resolution is only the order of microseconds. Is
the microsecond part really unreliable (fake) ??
    How do I profile my code other wise ?
Thanks in advance,
MK

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux