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.
This commit is contained in:
Noam Postavsky 2016-07-17 00:21:42 -04:00
parent 442cc39e13
commit 272391f1d6
2 changed files with 5 additions and 3 deletions

View file

@ -840,8 +840,9 @@ called, followed by how much resource (processor or memory) it used in
absolute and percentage times since profiling started. If a given absolute and percentage times since profiling started. If a given
line has a @samp{+} symbol at the left-hand side, you can expand that line has a @samp{+} symbol at the left-hand side, you can expand that
line by typing @key{RET}, in order to see the function(s) called by line by typing @key{RET}, in order to see the function(s) called by
the higher-level function. Pressing @key{RET} again will collapse the higher-level function. Use a prefix argument (@key{C-u RET}) to
back to the original state. see the whole call tree below a function. Pressing @key{RET} again
will collapse back to the original state.
Press @kbd{j} or @kbd{mouse-2} to jump to the definition of a function. Press @kbd{j} or @kbd{mouse-2} to jump to the definition of a function.
Press @kbd{d} to view a function's documentation. Press @kbd{d} to view a function's documentation.

View file

@ -692,7 +692,8 @@ With a prefix argument, expand the whole subtree."
(defun profiler-report-toggle-entry (&optional arg) (defun profiler-report-toggle-entry (&optional arg)
"Expand entry at point if the tree is collapsed, "Expand entry at point if the tree is collapsed,
otherwise collapse." otherwise collapse. With prefix argument, expand all subentries
below entry at point."
(interactive "P") (interactive "P")
(or (profiler-report-expand-entry arg) (or (profiler-report-expand-entry arg)
(profiler-report-collapse-entry))) (profiler-report-collapse-entry)))