title: Tips for profiling misbehaving Emacs Lisp?
body: <p>I customize Emacs a lot. Recently, I added something to my .emacs configuration that sporadically pegs my CPU at 100%, but I really don't know what it is. </p>
  
  <p>If I press C-g a bunch of times, eventually I'll get a message <em>below</em> the minibuffer asking me if I want to auto save my files and then if I want to abort emacs entirely. If I keep saying no and keeping pressing C-g, eventually I can get back to running emacs as normal. An hour or so later it will happen again.</p>
  
  <p>I could keep going about like I am, commenting out various things I've added recently, restarting emacs, trying to narrow down the culprit, but it's slow going.</p>
  
  <p><strong>Is there a way I can profile emacs directly to figure out what lisp function is hogging the CPU?</strong></p>