diff options
| -rw-r--r-- | lisp/emacs-lisp/elp.el | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lisp/emacs-lisp/elp.el b/lisp/emacs-lisp/elp.el index ed09599f4dd..eeeb72a3c3d 100644 --- a/lisp/emacs-lisp/elp.el +++ b/lisp/emacs-lisp/elp.el | |||
| @@ -147,16 +147,16 @@ Results are displayed with the `elp-results' command." | |||
| 147 | :group 'elp) | 147 | :group 'elp) |
| 148 | 148 | ||
| 149 | (defcustom elp-sort-by-function 'elp-sort-by-total-time | 149 | (defcustom elp-sort-by-function 'elp-sort-by-total-time |
| 150 | "*Non-nil specifies elp results sorting function. | 150 | "*Non-nil specifies ELP results sorting function. |
| 151 | These functions are currently available: | 151 | These functions are currently available: |
| 152 | 152 | ||
| 153 | elp-sort-by-call-count -- sort by the highest call count | 153 | elp-sort-by-call-count -- sort by the highest call count |
| 154 | elp-sort-by-total-time -- sort by the highest total time | 154 | elp-sort-by-total-time -- sort by the highest total time |
| 155 | elp-sort-by-average-time -- sort by the highest average times | 155 | elp-sort-by-average-time -- sort by the highest average times |
| 156 | 156 | ||
| 157 | You can write you're own sort function. It should adhere to the | 157 | You can write your own sort function. It should adhere to the |
| 158 | interface specified by the PRED argument for the `sort' defun. Each | 158 | interface specified by the PREDICATE argument for `sort'. |
| 159 | \"element of LIST\" is really a 4 element vector where element 0 is | 159 | Each \"element of LIST\" is really a 4 element vector where element 0 is |
| 160 | the call count, element 1 is the total time spent in the function, | 160 | the call count, element 1 is the total time spent in the function, |
| 161 | element 2 is the average time spent in the function, and element 3 is | 161 | element 2 is the average time spent in the function, and element 3 is |
| 162 | the symbol's name string." | 162 | the symbol's name string." |
| @@ -164,7 +164,7 @@ the symbol's name string." | |||
| 164 | :group 'elp) | 164 | :group 'elp) |
| 165 | 165 | ||
| 166 | (defcustom elp-report-limit 1 | 166 | (defcustom elp-report-limit 1 |
| 167 | "*Prevents some functions from being displayed in the results buffer. | 167 | "*Prevent some functions from being displayed in the results buffer. |
| 168 | If a number, no function that has been called fewer than that number | 168 | If a number, no function that has been called fewer than that number |
| 169 | of times will be displayed in the output buffer. If nil, all | 169 | of times will be displayed in the output buffer. If nil, all |
| 170 | functions will be displayed." | 170 | functions will be displayed." |
| @@ -173,12 +173,12 @@ functions will be displayed." | |||
| 173 | :group 'elp) | 173 | :group 'elp) |
| 174 | 174 | ||
| 175 | (defcustom elp-use-standard-output nil | 175 | (defcustom elp-use-standard-output nil |
| 176 | "*Non-nil says to output to `standard-output' instead of a buffer." | 176 | "*If non-nil, output to `standard-output' instead of a buffer." |
| 177 | :type 'boolean | 177 | :type 'boolean |
| 178 | :group 'elp) | 178 | :group 'elp) |
| 179 | 179 | ||
| 180 | (defcustom elp-recycle-buffers-p t | 180 | (defcustom elp-recycle-buffers-p t |
| 181 | "*nil says to not recycle the `elp-results-buffer'. | 181 | "*If nil, don't recycle the `elp-results-buffer'. |
| 182 | In other words, a new unique buffer is create every time you run | 182 | In other words, a new unique buffer is create every time you run |
| 183 | \\[elp-results]." | 183 | \\[elp-results]." |
| 184 | :type 'boolean | 184 | :type 'boolean |
| @@ -372,7 +372,7 @@ Use optional LIST if provided instead." | |||
| 372 | (mapcar 'elp-restore-function list))) | 372 | (mapcar 'elp-restore-function list))) |
| 373 | 373 | ||
| 374 | (defun elp-restore-all () | 374 | (defun elp-restore-all () |
| 375 | "Restores the original definitions of all functions being profiled." | 375 | "Restore the original definitions of all functions being profiled." |
| 376 | (interactive) | 376 | (interactive) |
| 377 | (elp-restore-list elp-all-instrumented-list)) | 377 | (elp-restore-list elp-all-instrumented-list)) |
| 378 | 378 | ||
| @@ -412,7 +412,7 @@ Use optional LIST if provided instead." | |||
| 412 | (elp-instrument-function funsym))) | 412 | (elp-instrument-function funsym))) |
| 413 | 413 | ||
| 414 | (defun elp-unset-master () | 414 | (defun elp-unset-master () |
| 415 | "Unsets the master function." | 415 | "Unset the master function." |
| 416 | (interactive) | 416 | (interactive) |
| 417 | ;; when there's no master function, recording is turned on by default. | 417 | ;; when there's no master function, recording is turned on by default. |
| 418 | (setq elp-master nil | 418 | (setq elp-master nil |
| @@ -558,7 +558,7 @@ original definition, use \\[elp-restore-function] or \\[elp-restore-all]." | |||
| 558 | (defun elp-results () | 558 | (defun elp-results () |
| 559 | "Display current profiling results. | 559 | "Display current profiling results. |
| 560 | If `elp-reset-after-results' is non-nil, then current profiling | 560 | If `elp-reset-after-results' is non-nil, then current profiling |
| 561 | information for all instrumented functions are reset after results are | 561 | information for all instrumented functions is reset after results are |
| 562 | displayed." | 562 | displayed." |
| 563 | (interactive) | 563 | (interactive) |
| 564 | (let ((curbuf (current-buffer)) | 564 | (let ((curbuf (current-buffer)) |