[pypy-issue] [issue900] Using cProfile on Windows generates negative tottime values

Armin Rigo tracker at bugs.pypy.org
Tue Nov 1 18:16:25 CET 2011


Armin Rigo <armin.rigo at gmail.com> added the comment:

Note that I think a possible cause for this is that cProfile, together with the
JIT, uses as timestamp the very fast single-assembler instruction RDTSM.  On
multi-CPU machines, this can run into the issue that when the process moves
between different CPUs it can give inconsistent results.  We have attempted to
fix it on Linux by pinning the process to one CPU.  Can you point me to the
place of the Windows API that would do the same?

----------
nosy: +arigo

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue900>
________________________________________


More information about the pypy-issue mailing list