« first day (393 days earlier)      last day (841 days later) » 

2:10 AM
@uhoh I asked a diamond mod if it was okay for you to ask "What profiler should I use for Python?" and got a response "I'd be fine with it. I think some of the issue people have had with the "borderline" questions is they tend also tend to be low effort from the OP, but uhoh has a great track record of asking well researched questions and responding to feedback" so feel free to ask it!
If you use the tag, and , , I image we'll get several answers, each of them explaining all the pros and cons of their favorite profiler. Since most of our users are in the EST time zone, the best time to ask is at night time in Taiwan.
 
2:29 AM
@NikeDattani okay that's great, thanks! Now I have to "live up" to my reputation and ask a really good question :-) I'd never seen a one-topic-per-answer tag but that's pretty cool!
I've just had my morning coffee and almost out the door, I'll "craft" my question carefully this evening.
 
2:49 AM
@uhoh Here's an example in which someone asked for a using the tag:
21
Q: What software will allow me to combine two images?

SavirI have seen in many presentations and publications, things like a human on a molecule (for example). What software can do this? It's for a presentation I'm doing.

It discourages people from writing an answer that just lists 10 different profilers without saying anything useful about them. Instead we get 10 people explaining their favorite profiler in great detail.
 
 
5 hours later…
7:21 AM
@uhoh Perhaps you could say why these ones weren't satisfactory:
105
Q: Is there a visual profiler for Python?

FrederikI use cProfile now but I find it tedious to write pstats code just to query the statistics data. I'm looking for a visual tool that shows me what my Python code is doing in terms of CPU time and memory allocation. Some examples from the Java world are visualvm and JProfiler. Does something li...

1494
Q: How can you profile a Python script?

Chris LawlorProject Euler and other coding contests often have a maximum time to run or people boast of how fast their particular solution runs. With Python, sometimes the approaches are somewhat kludgey - i.e., adding timing code to __main__. What is a good way to profile how long a Python program takes to...

133
A: How can I profile Python code line-by-line?

Joe KingtonI believe that's what Robert Kern's line_profiler is intended for. From the link: File: pystone.py Function: Proc2 at line 149 Total time: 0.606656 s Line # Hits Time Per Hit % Time Line Contents ============================================================== 149 ...

14
Q: Python profiling using line_profiler - clever way to remove @profile statements on-the-fly?

jtlz2I want to use the excellent line_profiler, but only some of the time. To make it work I add @profile before every function call, e.g. @profile def myFunc(args): blah return and execute kernprof.py -l -v mycode.py args But I don't want to have to put the @profile decorators in by ...

My answer to the MMSE question I linked above, gave several advantages and disadvantages of the software I was recommending:
I wish those SO questions about profilers gave some concise pros and cons like my above answer, but unfortunately those SO questions are now closed, so I guess MMSE is the place where we could make this work!
Anyway, 2:30am here, so I'll be back in several hours (night time in Taiwan).
 

« first day (393 days earlier)      last day (841 days later) »