3 ms·
I admit they take time up front to learn to use and interpret the results, but it's a valuable skill and worth doing every year or so even on smaller projects t
by mattmanser 9y ago
I admit they take time up front to learn to use and interpret the results, but it's a valuable skill and worth doing every year or so even on smaller projects to see if there are any easy wins.
- mherrmann 9y agoYes, you're right. Mine is just the simplest and probably least powerful solution. cProfile is definitely more powerful.
- rrauenza 9y agoI think yours still has a valid use in production logging...
- mherrmann 9y agoOmg, cProfile just let me shave 900ms off the startup-time of my PyQt-based file manager [1]. I would not have found this that quickly without your hint. Thank you! [1]: https://fman.io https://fman.io
- mattmanser 9y agoNo problem! This was on the front page today, but flagged as a dupe, also an interesting read as it explains about flame graphs too: https://news.ycombinator.com/item?id=14384370 https://news.ycombinator.com/item?id=14384370