Function: profiler-report-expand-entry
profiler-report-expand-entry is an interactive and byte-compiled
function defined in profiler.el.gz.
Signature
(profiler-report-expand-entry &optional FULL)
Documentation
Expand entry at point.
With a prefix argument, expand the whole subtree.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/profiler.el.gz
(defun profiler-report-expand-entry (&optional full)
"Expand entry at point.
With a prefix argument, expand the whole subtree."
(interactive "P")
(save-excursion
(beginning-of-line)
(when (search-forward (concat profiler-report-closed-mark " ")
(line-end-position) t)
(let ((tree (profiler-report-calltree-at-point)))
(when tree
(let ((inhibit-read-only t))
(replace-match (concat profiler-report-open-mark " "))
(forward-line)
(let ((first (point))
(last (copy-marker (point) t)))
(profiler-report-insert-calltree-children tree)
(when full
(goto-char first)
(while (< (point) last)
(profiler-report-expand-entry)
(forward-line 1))))
t))))))