Hacker News new | past | comments | ask | show | jobs | submit login
Profiling: Interactive Python profiler (github.com/what-studio)
73 points by shinvee on Sept 21, 2014 | hide | past | favorite | 4 comments



Great project!

I've done some python code optimization recently and I was fairly disappointed in the profiling options; more precisely the profiling visualization options. Standard python provides pstats, which is basic and has an awkward command based GUI. I've tried runsnakerun and snakevis which do provide a nice graphical view but little else.

Easy to use, hierarchical list, clear output. I like this. I never used live profiling before and I can already see where it could be super handy.

Remarks:

-how do I pass arguments to my program. profiling seems to absorb all parameters

-Is it possible to access standard input/output when live profiling?

-Is it possible to reset the profiling statistics when live profiling? Eg.: I profile a webserver, profile a request, reset stats, profile another request,...

-I'd love to see an integration with IPython. Interactive optimization could be great: I profile some code, tweak it, profile again,...


For IPython-based profiling, I find the %timeit and %memit magic commands invaluable. This post has a good overview: http://pynash.org/2013/03/06/timing-and-profiling.html


There is lsprofcalltree which will use normal cProfile and give you output suitable for kcachegrind (which is awesome)


Looks cool, but I don't understand the remote profiling server. Does that mean profiling server code on requests or is it a server that can let you view profiling results?




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: