If you’ve ever wondered which packages are slowing down your Emacs load time, Matthias Bloggt has a quick and easy way of finding out. The TL:DR is that he surrounds each package load (really, each section of his config) with some unique comment strings. When he wants to measure his load times, he does a
query-replace-regexp to add code that captures the name of the section and the internal running time.
Afterwards, he runs an Org Babel file that post processes the data and produces a graph. It’s all very simple and doesn’t require a lot of setup or a fancy framework—other than Org mode, of course.
Also be sure to see the comments where Sacha Chua suggests an alternative method using
use-package. If you’re already using
use-package, and you should be, that may be an easier way.