[issue2218] Enhanced hotshot profiler with high-resolution timer

Jean Brouwers report at bugs.python.org
Mon Mar 3 00:45:11 CET 2008


New submission from Jean Brouwers:

The _hotshot module uses the gettimeofday function to profile the run 
time.

I enhanced the hotshot module in Python 2.5.2 to use a high resolution 
timer where available (RDTSC on x86/_64, MFTB/U on PowerPC and gethrtime 
on Solaris).

The improved hotshot module has been tested on 32-bit MacOS X 10.4.11 
Tiger (Intel) and 10.3.9 Panther (PPC), on 64-bit RHEL 3u7 (Opteron) and 
on 64-bit Solaris 10.

The 3 modified files are Modules/_hotshot.c, Lib/hotshot/log.py and 
Lib/hotshot/stats.py are attached.

----------
components: Extension Modules
files: hires_hotshot.tgz
messages: 63194
nosy: MrJean1
severity: normal
status: open
title: Enhanced hotshot profiler with high-resolution timer
type: feature request
versions: Python 2.5
Added file: http://bugs.python.org/file9588/hires_hotshot.tgz

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2218>
__________________________________


More information about the Python-bugs-list mailing list