emacs.rst
changeset 1952 b01bfc6caae7
parent 1945 dbcf75d07a68
child 2125 754abf10c819
equal deleted inserted replaced
1951:bf622753696f 1952:b01bfc6caae7
   187   (pp (buffer-local-variables))
   187   (pp (buffer-local-variables))
   188 
   188 
   189 Emacs profiling.
   189 Emacs profiling.
   190 ================
   190 ================
   191 
   191 
   192 benchmark.el.
   192 edebug
   193 -------------
   193 ------
       
   194 
       
   195 ``edebug`` allow save execution statistic on per line basis. As usual evaluate
       
   196 ``C-u M-S-x`` (or ``M-x edebug-defun``) on top lovel functional form. Call code
       
   197 that uses examined function. On entry to ``edebug`` type ``c``
       
   198 (``edebug-continue-mode``). After finishing evaluation place cursor to examined
       
   199 function form and evaluate ``M-x edebug-display-freq-count``. Function be
       
   200 annotated with evaluation counts per line.
       
   201 
       
   202 benchmark.el
       
   203 ------------
   194 ::
   204 ::
   195 
   205 
   196   (benchmark-run 1 (revert-buffer))
   206   (benchmark-run 1 (revert-buffer))
   197   (benchmark-run-compiled 1 (hi-lock-face-phrase-buffer "hello" 'hi-yellow))
   207   (benchmark-run-compiled 1 (hi-lock-face-phrase-buffer "hello" 'hi-yellow))
   198 
   208 
   199 elp.el.
   209 elp.el
   200 -------
   210 ------
   201 
   211 
   202 Enter a prefix for ``M-x elp-instrument-package``, perform action and see result
   212 Enter a prefix for ``M-x elp-instrument-package``, perform action and see result
   203 by ``M-x elp-results``. To perform new measurement don't forget to run
   213 by ``M-x elp-results``. To perform new measurement don't forget to run
   204 ``M-x elp-reset-all``.
   214 ``M-x elp-reset-all``.
   205 
   215