This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: cycle profiler for VM opcodes
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: jhylton Nosy List: arigo, jhylton, loewis, tim.peters
Priority: low Keywords: patch

Created on 2002-01-30 13:21 by jhylton, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
tsc.patch jhylton, 2002-01-30 13:21
test_cgi.sum jhylton, 2002-01-30 13:23 Summary of test_cgi measurements
pystone.sum jhylton, 2002-01-30 13:23 Summary of pystone measurements
Messages (9)
msg38815 - (view) Author: Jeremy Hylton (jhylton) (Python triager) Date: 2002-01-30 13:21
This is just some code I'm noodling around with.  It
counts the number of cycles each Python VM opcode takes
to execute, using the Pentium timestamp counter.
msg38816 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-10-07 21:12
Logged In: YES 
user_id=21627

Is this still of relevance?
msg38817 - (view) Author: Jeremy Hylton (jhylton) (Python triager) Date: 2002-10-09 15:16
Logged In: YES 
user_id=31392

sure
msg38818 - (view) Author: Armin Rigo (arigo) * (Python committer) Date: 2002-11-12 13:26
Logged In: YES 
user_id=4771

I think that you should try and convince people that it is a
generally useful information to have, and that the fact that
it is highly non-portable does not hurt.  Right now it looks
more like a change that a core developer would temporarily
want to do to tune the VM.
msg38819 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-09-20 11:40
Logged In: YES 
user_id=21627

OTOH, the patch is prepared for temporary usage, by means of
a configure option. Since nobody has been objecting
strongly, I'll accept this patch.
msg38820 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2004-03-21 19:22
Logged In: YES 
user_id=31435

Changed resolution from Accepted to Out-of-Date -- several 
parts of this patch fail to apply now.  Leaving assigned to 
Jeremy.  Still seems like a fine idea to me!
msg38821 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2004-03-21 19:23
Logged In: YES 
user_id=31435

Changed resolution from Accepted to Out-of-Date -- several 
parts of this patch fail to apply now.  Leaving assigned to 
Jeremy.  Still seems like a fine idea to me!
msg38822 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2004-03-21 19:24
Logged In: YES 
user_id=31435

Changed resolution from Accepted to Out-of-Date -- several 
parts of this patch fail to apply now.  Leaving assigned to 
Jeremy.  Still seems like a fine idea to me!
msg38823 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-06-08 08:20
Logged In: YES 
user_id=21627

I have updated the patch, and committed it as

README 1.182
configure 1.446
configure.in 1.457
pyconfig.h.in 1.97
libsys.tex 1.70
pystate.h 2.29
NEWS 1.995
ceval.c 2.399
pystate.c 2.31
sysmodule.c 2.124
History
Date User Action Args
2022-04-10 16:04:56adminsetgithub: 36000
2002-01-30 13:21:32jhyltoncreate