diff -r bf622753696f -r b01bfc6caae7 emacs.rst --- a/emacs.rst Tue Apr 12 20:43:41 2016 +0300 +++ b/emacs.rst Mon Apr 25 16:37:16 2016 +0300 @@ -189,15 +189,25 @@ Emacs profiling. ================ -benchmark.el. -------------- +edebug +------ + +``edebug`` allow save execution statistic on per line basis. As usual evaluate +``C-u M-S-x`` (or ``M-x edebug-defun``) on top lovel functional form. Call code +that uses examined function. On entry to ``edebug`` type ``c`` +(``edebug-continue-mode``). After finishing evaluation place cursor to examined +function form and evaluate ``M-x edebug-display-freq-count``. Function be +annotated with evaluation counts per line. + +benchmark.el +------------ :: (benchmark-run 1 (revert-buffer)) (benchmark-run-compiled 1 (hi-lock-face-phrase-buffer "hello" 'hi-yellow)) -elp.el. -------- +elp.el +------ Enter a prefix for ``M-x elp-instrument-package``, perform action and see result by ``M-x elp-results``. To perform new measurement don't forget to run