[issue2281] Enhanced cPython profiler with high-resolution timer

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: I think https://bugs.python.org/issue36575 fixed this. -- nosy: +inada.naoki resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue2281] Enhanced cPython profiler with high-resolution timer

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- priority: normal -> low versions: +Python 3.5 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-l

[issue2281] Enhanced cPython profiler with high-resolution timer

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- priority: normal -> low versions: +Python 3.5 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-l

[issue2281] Enhanced cPython profiler with high-resolution timer

2013-11-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- priority: normal -> low versions: +Python 3.5 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-l

[issue2281] Enhanced cPython profiler with high-resolution timer

2013-07-07 Thread Christian Heimes
Changes by Christian Heimes : -- versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue2281] Enhanced cPython profiler with high-resolution timer

2013-07-07 Thread Christian Heimes
Changes by Christian Heimes : -- versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue2281] Enhanced cPython profiler with high-resolution timer

2013-07-07 Thread Christian Heimes
Changes by Christian Heimes : -- versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue2281] Enhanced cPython profiler with high-resolution timer

2013-07-07 Thread Christian Heimes
Changes by Christian Heimes : -- versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue2281] Enhanced cPython profiler with high-resolution timer

2012-09-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: >There is another major issue: you have to synchronize the counter of all >CPU >cores. Windows XP didn't synchronize the counters, and it was a major >issue >on QueryPerformanceCounter. >http://support.microsoft.com/?id=896256 I don't understand why yo

[issue2281] Enhanced cPython profiler with high-resolution timer

2012-09-21 Thread STINNER Victor
STINNER Victor added the comment: Reading directly the CPU timestamp counter is not a good idea. > One issue with using timestamp counters is that their resolution varies > with CPU speed, which is not necessarily constant during a whole run > (because of power management). On the other hand I'm

[issue2281] Enhanced cPython profiler with high-resolution timer

2012-09-21 Thread STINNER Victor
STINNER Victor added the comment: Python 3.3 has a new time.perf_counter() function. It may be possible to expose this function in C and then use it in _lsprof. See the PEP for the list of (OS/hardware) clocks used by this function: http://www.python.org/dev/peps/pep-0418/#time-perf-counter ht

[issue2281] Enhanced cPython profiler with high-resolution timer

2010-11-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +krisvale ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue2281] Enhanced cPython profiler with high-resolution timer

2010-08-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Can someone post a diff against current py3k? I would like to take a look, but the files attached to this issue seem to be more than a year old. -- ___ Python tracker

[issue2281] Enhanced cPython profiler with high-resolution timer

2010-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: pitrou -> nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue2281] Enhanced cPython profiler with high-resolution timer

2010-05-19 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: gregory.p.smith -> pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue2281] Enhanced cPython profiler with high-resolution timer

2010-05-18 Thread Nir Aides
Nir Aides added the comment: > Nir, would you be interested in looking at this? yes, I'll take a look, but will take me a few days. -- ___ Python tracker ___ ___

[issue2281] Enhanced cPython profiler with high-resolution timer

2010-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sorry, the calibration loop actually looks correct in case of preemption, since it simply divides the TSC delta by the elapsed physical time (and both continue increasing monotonously when another thread runs). It is still vulnerable to the thread migration p

[issue2281] Enhanced cPython profiler with high-resolution timer

2010-05-18 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue2281] Enhanced cPython profiler with high-resolution timer

2010-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Regarding the calibrating loop when using ASM timestamp counters, there's one problem if the thread gets preempted in the middle of the loop: the calibration will return incorrect results. Perhaps a way of avoiding this would be to call nanosleep(1 ns) just b

[issue2281] Enhanced cPython profiler with high-resolution timer

2010-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Nir, would you be interested in looking at this? -- nosy: +nirai versions: -Python 2.7 ___ Python tracker ___ _

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-11-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: One issue with using timestamp counters is that their resolution varies with CPU speed, which is not necessarily constant during a whole run (because of power management). On the other hand I'm not sure it's really a problem. -- versions: +Python 3.2 -P

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-31 Thread Jean Brouwers
Jean Brouwers added the comment: Another thought on the hires timer to make the hires time and hires time units available as 2 other functions in the time module. For example, function time.ticks() returns the hires time stamp as an int. Function time.ticks2secs(t) converts a given number of

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-18 Thread Jean Brouwers
Changes by Jean Brouwers : Removed file: http://bugs.python.org/file14006/hpTime.c ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-18 Thread Jean Brouwers
Changes by Jean Brouwers : Removed file: http://bugs.python.org/file14004/hires_lsprof4.tgz ___ Python tracker ___ ___ Python-bugs-list mailing

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-18 Thread Jean Brouwers
Jean Brouwers added the comment: Another test build and result has been added to the hpTime.c comment. -- Added file: http://bugs.python.org/file14012/hpTime.c ___ Python tracker ___

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-18 Thread Jean Brouwers
Jean Brouwers added the comment: Both the hires_lsprof4.tgz and hpTime.c files have been updated with a change in the PowerPC asm code. The previous implementation used a loop: label and that may cause duplicate symbols when compiled at optimization levels of -O3 and above with older GNU C c

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-17 Thread Jean Brouwers
Jean Brouwers added the comment: Here a small, standalone test program of the hires timer code from _lsprof4.c. The results from 10 different builds are included in the comment. -- Added file: http://bugs.python.org/file14006/hpTime.c ___ Python tr

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-17 Thread Jean Brouwers
Jean Brouwers added the comment: There were two problems with _lsprof4.c. Attached is the corrected file and the forward diff with _lsprof.c rev 6670. -- Added file: http://bugs.python.org/file14004/hires_lsprof4.tgz ___ Python tracker

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-17 Thread Jean Brouwers
Changes by Jean Brouwers : Removed file: http://bugs.python.org/file14001/hires_lsprof4.tgz ___ Python tracker ___ ___ Python-bugs-list mailing

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-17 Thread Jean Brouwers
Jean Brouwers added the comment: Attached is yet another version of the Modules/_lsprof.c source, called _lsprof4.c. This one adds support for the hires timer on 32- and 64-bit Intel and PowerPC processors iff compiled with GNU C. With _lsprof4.c, the high precision profile is available on L

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-17 Thread Jean Brouwers
Jean Brouwers added the comment: Attached is another version of the Modules/_lsprof.c source file. This _lsprof3.c uses the hires time base on Mac OS X, Solaris and HP-UX (plus MS Windows like before) and does not require any asm code. Also, there are no changes other than the very top of the

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-03-13 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list maili

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-03-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Interesting patch, but there are lots of spurious #if's and #ifdef's which could be simplified. Also, some changes look slightly unrelated (e.g. the switch from malloc/free to PyObject_Malloc/PyObject_Free). -- nosy: +pitrou stage: -> patch review vers

[issue2281] Enhanced cPython profiler with high-resolution timer

2008-10-07 Thread Jean Brouwers
Changes by Jean Brouwers <[EMAIL PROTECTED]>: -- versions: +Python 2.7 -Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Pyth

[issue2281] Enhanced cPython profiler with high-resolution timer

2008-10-07 Thread Jean Brouwers
Changes by Jean Brouwers <[EMAIL PROTECTED]>: -- versions: +Python 2.5.3 -Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Pyth

[issue2281] Enhanced cPython profiler with high-resolution timer

2008-03-22 Thread Jean Brouwers
Changes by Jean Brouwers <[EMAIL PROTECTED]>: -- versions: +Python 3.0 -Python 2.5 Added file: http://bugs.python.org/file9813/_lsprof3.0.diff __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2281] Enhanced cPython profiler with high-resolution timer

2008-03-22 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: Here are 2 forward diff files against _lspprof.c rev 59564. One _lsprof2.6.diff for Python 2.6a1 and _lsprof3.0.diff for 3.0. Added file: http://bugs.python.org/file9812/_lsprof2.6.diff __ Tracker <[EMAIL PRO

[issue2281] Enhanced cPython profiler with high-resolution timer

2008-03-21 Thread Alexandre Vassalotti
Alexandre Vassalotti <[EMAIL PROTECTED]> added the comment: I don't think this should be added to 2.5. Only bugfixes are admissible to the backporting process (see PEP 6). Finally, could you post the diff of your changes as described at http://www.python.org/dev/patches/. Thanks! -- com

[issue2281] Enhanced cPython profiler with high-resolution timer

2008-03-13 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: Attached are 2 Modules/_lsprof.c files, one for Python 2.5.2 and 2.6a1 and the other for Python 3.0a3. Discard the previously posted one. Both contain the same enhancements to use the high-resolution timer where available. These versions c

[issue2281] Enhanced cPython profiler with high-resolution timer

2008-03-12 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: This enhancement applies to Python 2.5.2 only. -- components: +None versions: +Python 2.5 __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2281] Enhanced cPython profiler with high-resolution timer

2008-03-12 Thread Jean Brouwers
New submission from Jean Brouwers <[EMAIL PROTECTED]>: Attached is a modified version of the cPython profiler file Modules/_lsprof.c using a high-resolution timer where available. The enhancement has been tested on 32- and 64-bit Linux (x86 and x86_64) and on 32-bit MacOS X Tiger (Intel) and P