Breaking changes in Visual C++ 2015

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Sun May 10 05:54:01 PDT 2015


On 05/10/2015 07:39 AM, H. S. Teoh via Digitalmars-d wrote:
> I also just realized that on Posix the profiling code apparently relies
> on the rdtsc instruction, which counts CPU cycles in a 64-bit counter --
> given the high frequencies of modern CPUs, moderately long-running
> CPU-intensive processes easily overflow this counter, leading to
> wrapped-around timing values and completely garbled output.
>
> gprof, for all of its flaws, does not suffer from this problem.

http://www.wolframalpha.com/input/?i=2^64%2F%289+GHz%29

What am I missing?


More information about the Digitalmars-d mailing list