then you need to choose what you want to profile. You can type:
- mem - to profile only memory
- cpu - to profile only usage of the processor
- cpu+mem - to profile both memory and the processor
while the profiler is running you can display its result by invoking:
To stop profiling you should run:
The profiler report looks like this:
Every line in this report represents invoked function. On the right side of the line we can spot information about how much processor or memory was used by this function. The plus (+) sign near the function name indicate that this item can be expanded to show functions called by the upper function. You can expand such function by the
enter key. By pressing
enter again you can collapse the whole hierarchy. If you want to see whole call stack you can use
C-u RET key stroke.
There are three additional key bindings:
jto go to the function’s definition
dto see the function’s documentation.
=to compare two profiling reports
global-linum-mode function). When I disabled it I no longer have problems with the performance.