
http://pypi.python.org/pypi/line_profiler/ http://packages.python.org/line_profiler/ This release fixes the "negative timings" issue on Windows. Future announcements will occur on python-announce. I just wanted to make sure my earliest users here who ran into this bug are aware of the fix. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco

On Thu, Feb 19, 2009 at 03:21:26PM -0600, Robert Kern wrote:
http://pypi.python.org/pypi/line_profiler/ http://packages.python.org/line_profiler/ This release fixes the "negative timings" issue on Windows.
Cool. I'm still interested in making Fedora packages for this once I get a few spare cycles. -- Matthew Miller mattdm@mattdm.org <http://mattdm.org/>

Robert, Thanks for the announcement. I have recently started to use line_profiler to profile Twisted using servers and clients. I quickly found that line_profiler needed some modifications to properly handle timing functions that return Deferred's. I have written some small extensions to line_profiler (basically a subclass of LineProfiler called DeferredLineProfiler) to handle these things. I need to do some further testing before I contribute this, but how would you like to handle contributions (assuming you are open to contributions :)? For me, it is probably easiest to simply throw a branch up on github. Cheers and thanks for a fantastic package! Brian On Thu, Feb 19, 2009 at 1:21 PM, Robert Kern <robert.kern@gmail.com> wrote:
http://pypi.python.org/pypi/line_profiler/ http://packages.python.org/line_profiler/
This release fixes the "negative timings" issue on Windows.
Future announcements will occur on python-announce. I just wanted to make sure my earliest users here who ran into this bug are aware of the fix.
-- Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

On Thu, Feb 19, 2009 at 16:21, Brian Granger <ellisonbg.net@gmail.com> wrote:
Robert,
Thanks for the announcement. I have recently started to use line_profiler to profile Twisted using servers and clients. I quickly found that line_profiler needed some modifications to properly handle timing functions that return Deferred's. I have written some small extensions to line_profiler (basically a subclass of LineProfiler called DeferredLineProfiler) to handle these things. I need to do some further testing before I contribute this, but how would you like to handle contributions (assuming you are open to contributions :)?
For me, it is probably easiest to simply throw a branch up on github.
github is fine, but bitbucket would be a better impedance match. Either way, I'm looking forward to it. Thanks! -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco

github is fine, but bitbucket would be a better impedance match. Either way, I'm looking forward to it. Thanks!
I will give bitbucket a shot and let you know when I have something for you to look at. Cheers, Brian
-- Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Thanks a lot Robert for this very useful tool! I was wondering if there is a way to make it work with Cython code (see below) ? Sincerely, Nicolas fib.pyx: @profile def fib(n): """Print the Fibonacci series up to n.""" a, b = 0, 1 while b < n: a, b = b, a + b test.py: import pyximport pyximport.install() import fib fib.fib(100) % python kernprof.py -vl test.py Wrote profile results to test.py.lprof Timer unit: 1e-06 s Traceback (most recent call last): File "kernprof.py", line 167, in <module> sys.exit(main(sys.argv)) File "kernprof.py", line 155, in main execfile(script_file, ns, ns) File "test.py", line 5, in <module> import fib File "/usr/lib/python2.5/site-packages/Cython-0.11.2-py2.5-linux-x86_64.egg/pyximport/pyximport.py", line 288, in load_module self.pyxbuild_dir) File "/usr/lib/python2.5/site-packages/Cython-0.11.2-py2.5-linux-x86_64.egg/pyximport/pyximport.py", line 154, in load_module raise ImportError("Building module failed: %s" % e) ImportError: Building module failed: 'builtin_function_or_method' object has no attribute '__dict__' On Thu, Feb 19, 2009 at 5:21 PM, Robert Kern <robert.kern@gmail.com> wrote:
http://pypi.python.org/pypi/line_profiler/ http://packages.python.org/line_profiler/
This release fixes the "negative timings" issue on Windows.
Future announcements will occur on python-announce. I just wanted to make sure my earliest users here who ran into this bug are aware of the fix.
-- Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
-- Nicolas Pinto Ph.D. Candidate, Brain & Computer Sciences Massachusetts Institute of Technology, USA http://web.mit.edu/pinto

On Mon, Jul 20, 2009 at 01:42, Nicolas Pinto<pinto@mit.edu> wrote:
Thanks a lot Robert for this very useful tool!
I was wondering if there is a way to make it work with Cython code (see below) ?
No, line_profiler cannot work with Cython. There is some talk on the Cython mailing list about implementing function profiling and line profiling support in Cython, but it won't be related to line_profiler for a variety of technical reasons. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
participants (4)
-
Brian Granger
-
Matthew Miller
-
Nicolas Pinto
-
Robert Kern