New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved profiler #42041
Comments
I tried using both hotshot and the old python profiler The old python profiler seems to give accurate results The hotshot profiler is much faster (profiling) adding To address these shortcomings, I wrote a new profiling I've included a simple test script that runs pystone |
Logged In: YES I've enclosed an updated version of profile.c that fixes |
Logged In: YES We've been using Hotshot at Strakt for a while now. We Laura Creighton |
Logged In: YES Thanks for your work. The two existing profilers are There are a number of details that should be addressed I hope you won't mind that I have checked your source code |
Logged In: YES I welcome any additional changes (and help making those changes) The main detail that I knew that would need to be addressed |
Logged In: YES Well, you can see what we've done to your baby: http://codespeak.net/svn/user/arigo/hack/misc/lsprof/profile.c Mostly it's just C style conformance so far, though we've fixed a couple of |
Logged In: YES I replaced the linked lists with some kind of auto-balacing The current SVN version is now the first profiler that getstats() is now producing tuples-with-attribute-names The lsprof.py module exposes a simple but minimalistic |
Logged In: YES I looked over the changes so far and they look reasonable. I 1 Do we not need to Increment/Decrement references to 2 Is it deliberate to use lsprof.YYY style names for some 3 Do you have a feel for the performance differences 4 In lsprof.py, is there a reason that the Stats class |
Logged In: YES 1 The Py_INCREF(_code) at line 86 is the same as in 2 It was a quick hack to have help(lsprof) display 3 Profiling a large program took forever. I 4 No. Checked in your proposed changes. What is still |
Can this patch be closed? Python 2.5 has a new |
Yes, this profiler is now available as the cProfile For older Python versions, it is not packaged but |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: