r/programming • u/c5urf3r • Aug 19 '17
IPython magic command to profile and view your Python code as a heat map.
https://github.com/csurfer/pyheatmagic0
Aug 19 '17
[deleted]
2
u/c5urf3r Aug 19 '17
I got similar suggestions when I created the parent package which is doing the heavy lifting https://github.com/csurfer/pyheat.
Thing is we have profilers which do the job very effectively and at a very deep level. pyheat was created to be light weight and yet give a good idea about the bottlenecks without getting into the details. So making a html version and adding drill down might come to pyheat but not in the near future as I see it.
0
Aug 19 '17
[deleted]
1
u/c5urf3r Aug 20 '17
Apart from the drill down that you already talked about can you list the other things that you would like to see in the utility in future? As I am the author of both pyheatmagic and pyheat I am at liberty to include it in the parent package making sure it trickles down to the magic command too.
0
Aug 20 '17
[deleted]
1
u/c5urf3r Aug 20 '17
Awesome suggestions, let me see what I can pick up. If you get to it in the mean time I appreciate a pull request :)
5
u/QQMF Aug 19 '17
Thanks for sharing! This looks like it could be an awesome complement to Python Tutor (U of Waterloo version).