Re: [Tutor] Timing a python program

2015-01-17 Thread Albert-Jan Roskam
- Original Message - > From: CL Talk > To: Danny Yoo > Cc: Python Tutor Mailing List > Sent: Saturday, January 17, 2015 4:04 AM > Subject: Re: [Tutor] Timing a python program > >T hanks to all the responses. I have started looking at the > documentation and

Re: [Tutor] Timing a python program

2015-01-17 Thread CL Talk
Thanks to all the responses. I have started looking at the documentation and will be implementing it. Thanks for the direction. I only have megabytes of data files. I think that the program can be optimized and am hoping that with the profiler I will be able to get some insight. Thanks again. On

Re: [Tutor] Timing a python program

2015-01-16 Thread Danny Yoo
On Thu, Jan 15, 2015 at 9:02 PM, CL Talk wrote: > Hello - I have a python program that reads data from data files and > does manipulation on the data and writes back to output files. I am > developing this program on a macbook with python 2.7.6. > > This program takes close to 10 minutes on my mac

Re: [Tutor] Timing a python program

2015-01-16 Thread Albert-Jan Roskam
On Fri, Jan 16, 2015 7:34 PM CET Alan Gauld wrote: >On 16/01/15 09:20, Mark Lawrence wrote: > >> https://docs.python.org/2/library/profile.html >> >> For non Luddites https://docs.python.org/3/library/profile.html :) > > >Yeah, but the OP said it was for 2.7.6 on a Ma

Re: [Tutor] Timing a python program

2015-01-16 Thread Alan Gauld
On 16/01/15 09:20, Mark Lawrence wrote: https://docs.python.org/2/library/profile.html For non Luddites https://docs.python.org/3/library/profile.html :) Yeah, but the OP said it was for 2.7.6 on a Mac... -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www

Re: [Tutor] Timing a python program

2015-01-16 Thread Mark Lawrence
On 16/01/2015 08:52, Alan Gauld wrote: On 16/01/15 05:02, CL Talk wrote: I am trying to see how I can time the whole program as well as various functions that are part of the program. That's called profiling and there is a Python profiler. Here's the official doc page https://docs.python.o

Re: [Tutor] Timing a python program

2015-01-16 Thread Alan Gauld
On 16/01/15 05:02, CL Talk wrote: I am trying to see how I can time the whole program as well as various functions that are part of the program. That's called profiling and there is a Python profiler. Here's the official doc page https://docs.python.org/2/library/profile.html And here's th

Re: [Tutor] Timing a python program

2015-01-16 Thread Ben Finney
CL Talk writes: > I am trying to see how I can time the whole program as well as various > functions that are part of the program. The term for this dynamic timing introspection of parts of the system is “program profiling”; you are seeking a “profiler” https://en.wikipedia.org/wiki/Profiling_%2

[Tutor] Timing a python program

2015-01-16 Thread CL Talk
Hello - I have a python program that reads data from data files and does manipulation on the data and writes back to output files. I am developing this program on a macbook with python 2.7.6. This program takes close to 10 minutes on my machine to run. But, the issue is that it is not take the sam