diff options
| author | Noam Postavsky | 2016-07-17 00:21:42 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2016-07-28 20:02:42 -0400 |
| commit | 272391f1d63eae0c1002d62fa5e5b1d63a0da767 (patch) | |
| tree | b70fcdc992dbba9ae354297fc71bc9c3325ed2da | |
| parent | 442cc39e138a3cc9e281fb09e179370f65d81ba2 (diff) | |
| download | emacs-272391f1d63eae0c1002d62fa5e5b1d63a0da767.tar.gz emacs-272391f1d63eae0c1002d62fa5e5b1d63a0da767.zip | |
profiler: document prefix arg for tree expansion
* doc/lispref/debugging.texi (Profiling):
* lisp/profiler.el (profiler-report-toggle-entry): Document use of
prefix argument to expand whole call trees.
| -rw-r--r-- | doc/lispref/debugging.texi | 5 | ||||
| -rw-r--r-- | lisp/profiler.el | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/doc/lispref/debugging.texi b/doc/lispref/debugging.texi index 98c47052cb0..2f83b4040fa 100644 --- a/doc/lispref/debugging.texi +++ b/doc/lispref/debugging.texi | |||
| @@ -840,8 +840,9 @@ called, followed by how much resource (processor or memory) it used in | |||
| 840 | absolute and percentage times since profiling started. If a given | 840 | absolute and percentage times since profiling started. If a given |
| 841 | line has a @samp{+} symbol at the left-hand side, you can expand that | 841 | line has a @samp{+} symbol at the left-hand side, you can expand that |
| 842 | line by typing @key{RET}, in order to see the function(s) called by | 842 | line by typing @key{RET}, in order to see the function(s) called by |
| 843 | the higher-level function. Pressing @key{RET} again will collapse | 843 | the higher-level function. Use a prefix argument (@key{C-u RET}) to |
| 844 | back to the original state. | 844 | see the whole call tree below a function. Pressing @key{RET} again |
| 845 | will collapse back to the original state. | ||
| 845 | 846 | ||
| 846 | Press @kbd{j} or @kbd{mouse-2} to jump to the definition of a function. | 847 | Press @kbd{j} or @kbd{mouse-2} to jump to the definition of a function. |
| 847 | Press @kbd{d} to view a function's documentation. | 848 | Press @kbd{d} to view a function's documentation. |
diff --git a/lisp/profiler.el b/lisp/profiler.el index 401cae537e6..3bee3c561a7 100644 --- a/lisp/profiler.el +++ b/lisp/profiler.el | |||
| @@ -692,7 +692,8 @@ With a prefix argument, expand the whole subtree." | |||
| 692 | 692 | ||
| 693 | (defun profiler-report-toggle-entry (&optional arg) | 693 | (defun profiler-report-toggle-entry (&optional arg) |
| 694 | "Expand entry at point if the tree is collapsed, | 694 | "Expand entry at point if the tree is collapsed, |
| 695 | otherwise collapse." | 695 | otherwise collapse. With prefix argument, expand all subentries |
| 696 | below entry at point." | ||
| 696 | (interactive "P") | 697 | (interactive "P") |
| 697 | (or (profiler-report-expand-entry arg) | 698 | (or (profiler-report-expand-entry arg) |
| 698 | (profiler-report-collapse-entry))) | 699 | (profiler-report-collapse-entry))) |