Emacs reacts slowly: how is the profile?

I sometimes experience Emacs. Sometimes emacs spends a lot of time saving a file. I did not quite understand why and when this happens. This is similar to using IPython and ropemacs.

Is there any way to find out which emacs spends its time? Note that emacs does not respond while saving the file.

Another thread in emacs profiling did not provide a clear solution.

Can someone recommend me what steps to take to find out what keeps emacs busy. As said, this happens when the ipython shell starts up and when I work with ropemacs to associate myself with a lot of code. Or does anyone know about problems with these packages? Or, Is an operating system problem? (I have ubuntu 11.10, emacs 23.3.1, ipython 0.11)

+4
source share
2 answers

For an overview of your profiling options, see this related question ; you can use the hints in my answer there to profile specific packages that you suspect to cause a slowdown.

+1
source

Someone will surely give you profiling tips. I personally would like to know which function starts the save operation, and then use the Emacs debugger at the moment the save starts - either add (debug) immediately before the general save operation, or use Mx debug-on-entry for the function that initiates the save.

I would go through the debugger (using d and c ) to find out what this laborious step is. If I were to guess blindly, I would suggest that some applications at the level (for example, related to python) massing / converting or checking stored data occurs before the actual disk is written.

Among other things, this will give you a better idea of ​​what is happening and why.

0
source

Source: https://habr.com/ru/post/1387538/


All Articles