Set number of times to run function with line_profiler #42
Comments
If you just run the function a number of times, the timings will all accumulate. |
Are you meaning that I should use |
The use of Just run the profiled function in a short loop if you need it profiled multiple times:
However you run |
Ah, ok, thanks for clarifying. |
Though it is easy for me to get something similar by adding some more code on my side, I still think it would be nice to see this as an option for the line profiler. |
The reasoning I have given still stands. That functionality does not fit with the other requirements for |
It might be nice to get some better statistics to set some number of times to run the function like what is done with timeit. This way if there is some drift from run to run it will hopefully cancel out on the average. This would also allow for some error bars to be added. If there is already a way to do this, please let me know.
Also, thanks for such an awesome tool. This is my favorite Python profiling tool by far.
The text was updated successfully, but these errors were encountered: