Re: How do we profile our code?

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

 



Hi Hayim,
Is this a user-space application or kernel module, you want to profile?
I want to profile a user-space application.

I also use clock():
Where is clock() defined?

I just wanted to confirm this:
Using gettimeofday() will never give me a correct result because:
It is a user space app. which the scheduler can kick out anytime. Right? Anything else ?

Secondly, the resolution that i get thru gettimeofday() after conversion can be upto microseconds. But I fear that is fake ? A resolution upto millisecond is correct? This has something to do with the sys clock / timing issues I read somewhere.

Thanks for your time..
Manav

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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