My initialization file is organized in org-mode with src snippets. Is there a way I can profile it to see which snippets take the most time to evaluate? When my initialization file was in Elisp, I was able to profile it with ProfileDotEmacs, but that doesn't work for me anymore.

Here is how I load the Org file:

(org-babel-load-file "path/to/main.org")

Since the snippets are evaluated with Babel, maybe there's a way to tell Babel to output the execution time of each snippet?

  • 2
    Use M-x org-babel-tangle to produce the pure elisp file and profile that one instead. – wasamasa Oct 11 '15 at 17:09
  • org-babel-load-file should tangle the file already. Try the profiledotemacs on "path/to/main.el". This file should exist ones you have loaded your initial file. – Sparx Oct 12 '15 at 9:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.