profdump
profdump copied to clipboard
Function times shouldn't be shown in seconds when CPU frequency is unknown
Even though #3 fixes that problem when profdump just dies not finding ticks/second, profdump will now show times assuming 1 tick being 1 ms on a 1GHz CPU. This isn't correct.
notice: Tick do not mean processor clock cycle
-
On MS Windows, there are 10,000 ticks in a millisecond (see http://msdn.microsoft.com/en-us/library/system.datetime.ticks.aspx ).
-
On Linux, the number of clock ticks per second can be obtained using sysconf(_SC_CLK_TCK);. See e.g. http://linux.die.net/man/2/times