diff options
| author | Richard M. Stallman | 1994-09-14 20:24:21 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-14 20:24:21 +0000 |
| commit | 62f91105e48e4375bc36282be271421d1a232f32 (patch) | |
| tree | 0eed74061e772a1a037cd1f696c9f628a629d425 | |
| parent | c0fd04c89d55b0cec2183cb2d4a1ea06cf024f18 (diff) | |
| download | emacs-62f91105e48e4375bc36282be271421d1a232f32.tar.gz emacs-62f91105e48e4375bc36282be271421d1a232f32.zip | |
Add autoloads.
| -rw-r--r-- | lisp/emacs-lisp/elp.el | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/lisp/emacs-lisp/elp.el b/lisp/emacs-lisp/elp.el index 30eb2154134..0b421d10224 100644 --- a/lisp/emacs-lisp/elp.el +++ b/lisp/emacs-lisp/elp.el | |||
| @@ -2,11 +2,11 @@ | |||
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1994 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1994 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: 1994 Barry A. Warsaw, Century Computing, Inc. <bwarsaw@cen.com> | 5 | ;; Author: 1994 Barry A. Warsaw <bwarsaw@cnri.reston.va.us> |
| 6 | ;; Maintainer: bwarsaw@cen.com | 6 | ;; Maintainer: tools-help@anthem.nlm.nih.gov |
| 7 | ;; Created: 26-Feb-1994 | 7 | ;; Created: 26-Feb-1994 |
| 8 | ;; Version: 2.15 | 8 | ;; Version: 2.18 |
| 9 | ;; Last Modified: 1994/07/05 13:46:02 | 9 | ;; Last Modified: 1994/09/14 14:00:09 |
| 10 | ;; Keywords: Emacs Lisp Profile Timing | 10 | ;; Keywords: Emacs Lisp Profile Timing |
| 11 | 11 | ||
| 12 | ;; This file is part of GNU Emacs. | 12 | ;; This file is part of GNU Emacs. |
| @@ -32,7 +32,7 @@ | |||
| 32 | ;; profiler.el. Both were written for Emacs 18 and both were pretty | 32 | ;; profiler.el. Both were written for Emacs 18 and both were pretty |
| 33 | ;; good first shots at profiling, but I found that they didn't provide | 33 | ;; good first shots at profiling, but I found that they didn't provide |
| 34 | ;; the functionality or interface that I wanted. So I wrote this. | 34 | ;; the functionality or interface that I wanted. So I wrote this. |
| 35 | ;; I've tested elp in Lucid Emacs 19.9 and Emacs 19.22. There's no | 35 | ;; I've tested elp in Lucid Emacs 19.9 and Emacs 19.22. There's no |
| 36 | ;; point in even trying to make this work with Emacs 18. | 36 | ;; point in even trying to make this work with Emacs 18. |
| 37 | 37 | ||
| 38 | ;; Unlike previous profilers, elp uses Emacs 19's built-in function | 38 | ;; Unlike previous profilers, elp uses Emacs 19's built-in function |
| @@ -156,7 +156,7 @@ functions will be displayed.") | |||
| 156 | ;; end user configuration variables | 156 | ;; end user configuration variables |
| 157 | 157 | ||
| 158 | 158 | ||
| 159 | (defconst elp-version "2.15" | 159 | (defconst elp-version "2.18" |
| 160 | "ELP version number.") | 160 | "ELP version number.") |
| 161 | 161 | ||
| 162 | (defconst elp-help-address "tools-help@anthem.nlm.nih.gov" | 162 | (defconst elp-help-address "tools-help@anthem.nlm.nih.gov" |
| @@ -179,6 +179,7 @@ This variable is set by the master function.") | |||
| 179 | "Master function symbol.") | 179 | "Master function symbol.") |
| 180 | 180 | ||
| 181 | 181 | ||
| 182 | ;;;###autoload | ||
| 182 | (defun elp-instrument-function (funsym) | 183 | (defun elp-instrument-function (funsym) |
| 183 | "Instrument FUNSYM for profiling. | 184 | "Instrument FUNSYM for profiling. |
| 184 | FUNSYM must be a symbol of a defined function." | 185 | FUNSYM must be a symbol of a defined function." |
| @@ -232,6 +233,7 @@ FUNSYM must be a symbol of a defined function." | |||
| 232 | (cons funsym elp-all-instrumented-list))) | 233 | (cons funsym elp-all-instrumented-list))) |
| 233 | )) | 234 | )) |
| 234 | 235 | ||
| 236 | ;;;###autoload | ||
| 235 | (defun elp-restore-function (funsym) | 237 | (defun elp-restore-function (funsym) |
| 236 | "Restore an instrumented function to its original definition. | 238 | "Restore an instrumented function to its original definition. |
| 237 | Argument FUNSYM is the symbol of a defined function." | 239 | Argument FUNSYM is the symbol of a defined function." |
| @@ -261,6 +263,7 @@ Argument FUNSYM is the symbol of a defined function." | |||
| 261 | (assq 'elp-wrapper (symbol-function funsym)) | 263 | (assq 'elp-wrapper (symbol-function funsym)) |
| 262 | (fset funsym (aref info 2))))) | 264 | (fset funsym (aref info 2))))) |
| 263 | 265 | ||
| 266 | ;;;###autoload | ||
| 264 | (defun elp-instrument-list (&optional list) | 267 | (defun elp-instrument-list (&optional list) |
| 265 | "Instrument for profiling, all functions in `elp-function-list'. | 268 | "Instrument for profiling, all functions in `elp-function-list'. |
| 266 | Use optional LIST if provided instead." | 269 | Use optional LIST if provided instead." |
| @@ -268,6 +271,7 @@ Use optional LIST if provided instead." | |||
| 268 | (let ((list (or list elp-function-list))) | 271 | (let ((list (or list elp-function-list))) |
| 269 | (mapcar 'elp-instrument-function list))) | 272 | (mapcar 'elp-instrument-function list))) |
| 270 | 273 | ||
| 274 | ;;;###autoload | ||
| 271 | (defun elp-instrument-package (prefix) | 275 | (defun elp-instrument-package (prefix) |
| 272 | "Instrument for profiling, all functions which start with PREFIX. | 276 | "Instrument for profiling, all functions which start with PREFIX. |
| 273 | For example, to instrument all ELP functions, do the following: | 277 | For example, to instrument all ELP functions, do the following: |
| @@ -437,6 +441,7 @@ original definition, use \\[elp-restore-function] or \\[elp-restore-all]." | |||
| 437 | (insert avetime)) | 441 | (insert avetime)) |
| 438 | (insert "\n")))) | 442 | (insert "\n")))) |
| 439 | 443 | ||
| 444 | ;;;###autoload | ||
| 440 | (defun elp-results () | 445 | (defun elp-results () |
| 441 | "Display current profiling results. | 446 | "Display current profiling results. |
| 442 | If `elp-reset-after-results' is non-nil, then current profiling | 447 | If `elp-reset-after-results' is non-nil, then current profiling |
| @@ -508,6 +513,7 @@ displayed." | |||
| 508 | (eval-when-compile | 513 | (eval-when-compile |
| 509 | (require 'reporter)) | 514 | (require 'reporter)) |
| 510 | 515 | ||
| 516 | ;;;###autoload | ||
| 511 | (defun elp-submit-bug-report () | 517 | (defun elp-submit-bug-report () |
| 512 | "Submit via mail, a bug report on elp." | 518 | "Submit via mail, a bug report on elp." |
| 513 | (interactive) | 519 | (interactive) |