highlight.js language file for Python profiler output
Chances are slim, but if you happen to use highlight.js for your syntax highlighting (highly recommended unless you’re doing it server-side) and also want pretty Python profiler output, just drop profile.js into highlighter’s languages directory. Don’t forget to load the ‘profile’ language and give it some style.
Mine looks like this:
5765127 function calls in 13.211 CPU seconds
ncalls tottime filename:lineno(function)
152137 5.911 {_heapq.heapreplace}
154000 1.226 rrule.py:400(_iter)
1514270 1.021 rrule.py:847(__cmp__)
1514270 0.860 {cmp}
304414/151581 0.743 rrule.py:103(_iter_cached)
57378 0.601 rrule.py:781(wdayset)
151580 0.440 rrule.py:869(_iter)