diff options
| author | Glenn Morris | 2013-01-19 18:40:49 -0800 |
|---|---|---|
| committer | Glenn Morris | 2013-01-19 18:40:49 -0800 |
| commit | a576cc76c8267928c601da79f370f98fa1834e8e (patch) | |
| tree | 7779e99f9b866e0a49d14a5eb6feb53f0411494a | |
| parent | 15df6fa4f12fdb2faf798b88c544b31de83591b2 (diff) | |
| download | emacs-a576cc76c8267928c601da79f370f98fa1834e8e.tar.gz emacs-a576cc76c8267928c601da79f370f98fa1834e8e.zip | |
* lisp-mode.el (emacs-lisp-mode-map): Add native profiler menu entries.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/lisp-mode.el | 16 |
2 files changed, 19 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 02c79ef1920..d439c661401 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2013-01-20 Glenn Morris <rgm@gnu.org> | 1 | 2013-01-20 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * emacs-lisp/lisp-mode.el (emacs-lisp-mode-map): | ||
| 4 | Add native profiler menu entries. | ||
| 5 | |||
| 3 | * profiler.el (profiler-running-p): New function. | 6 | * profiler.el (profiler-running-p): New function. |
| 4 | (profiler-cpu-profile): Use profiler-running-p. | 7 | (profiler-cpu-profile): Use profiler-running-p. |
| 5 | (profiler-report-mode-map): Add some more menu entries. | 8 | (profiler-report-mode-map): Add some more menu entries. |
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 9c2bd1a29bd..3d13dc451b2 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el | |||
| @@ -335,6 +335,22 @@ font-lock keywords will not be case sensitive." | |||
| 335 | (bindings--define-key prof-map [prof-func] | 335 | (bindings--define-key prof-map [prof-func] |
| 336 | '(menu-item "Instrument Function..." elp-instrument-function | 336 | '(menu-item "Instrument Function..." elp-instrument-function |
| 337 | :help "Instrument a function for profiling")) | 337 | :help "Instrument a function for profiling")) |
| 338 | ;; Maybe this should be in a separate submenu from the ELP stuff? | ||
| 339 | (bindings--define-key prof-map [sep-natprof] menu-bar-separator) | ||
| 340 | (bindings--define-key prof-map [prof-natprof-stop] | ||
| 341 | '(menu-item "Stop Native Profiler" profiler-stop | ||
| 342 | :help "Stop recording profiling information" | ||
| 343 | :enable (and (featurep 'profiler) | ||
| 344 | (profiler-running-p)))) | ||
| 345 | (bindings--define-key prof-map [prof-natprof-report] | ||
| 346 | '(menu-item "Show Profiler Report" profiler-report | ||
| 347 | :help "Show the current profiler report" | ||
| 348 | :enable (and (featurep 'profiler) | ||
| 349 | (profiler-running-p)))) | ||
| 350 | (bindings--define-key prof-map [prof-natprof-start] | ||
| 351 | '(menu-item "Start Native Profiler..." profiler-start | ||
| 352 | :help "Start recording profiling information")) | ||
| 353 | |||
| 338 | (bindings--define-key menu-map [lint] (cons "Linting" lint-map)) | 354 | (bindings--define-key menu-map [lint] (cons "Linting" lint-map)) |
| 339 | (bindings--define-key lint-map [lint-di] | 355 | (bindings--define-key lint-map [lint-di] |
| 340 | '(menu-item "Lint Directory..." elint-directory | 356 | '(menu-item "Lint Directory..." elint-directory |