Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find out module slowing down emacs

Tags:

emacs

I have lots of modules loaded in emacs. With some files, things get very slow. I would like to find out which module is the culprit. How could I debug this in emacs? Are there any debug settings / configuration parameters which could help me in logging the activity that emacs is performing while I move / edit in the active buffer?

like image 220
blueFast Avatar asked Jun 26 '13 11:06

blueFast


1 Answers

You may find useful doing a M-x profiler-start. Use mode cpu when asked. After a while, type M-x profile-report and take a look to the findings. It is easy navigating through them.

Other than that, you always have the "binary search" cheapo-approach of commenting in and out fractions of your init file to find out who is slowing things :-)

like image 123
juanleon Avatar answered Nov 03 '22 04:11

juanleon