emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 272391f 3/3: profiler: document prefix arg for tr


From: Noam Postavsky
Subject: [Emacs-diffs] emacs-25 272391f 3/3: profiler: document prefix arg for tree expansion
Date: Fri, 29 Jul 2016 00:10:33 +0000 (UTC)

branch: emacs-25
commit 272391f1d63eae0c1002d62fa5e5b1d63a0da767
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    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.
---
 doc/lispref/debugging.texi |    5 +++--
 lisp/profiler.el           |    3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/doc/lispref/debugging.texi b/doc/lispref/debugging.texi
index 98c4705..2f83b40 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
 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 by typing @key{RET}, in order to see the function(s) called by
-the higher-level function.  Pressing @key{RET} again will collapse
-back to the original state.
+the higher-level function.  Use a prefix argument (@key{C-u RET}) to
+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{d} to view a function's documentation.
diff --git a/lisp/profiler.el b/lisp/profiler.el
index 401cae5..3bee3c5 100644
--- a/lisp/profiler.el
+++ b/lisp/profiler.el
@@ -692,7 +692,8 @@ With a prefix argument, expand the whole subtree."
 
 (defun profiler-report-toggle-entry (&optional arg)
   "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")
   (or (profiler-report-expand-entry arg)
       (profiler-report-collapse-entry)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]