Function: smart-profiler-report
smart-profiler-report is an interactive and byte-compiled function
defined in hui-mouse.el.
Signature
(smart-profiler-report)
Documentation
Use a single key or mouse key to jump to call tree items with links.
Invoked via a key press when in `profiler-report-mode. It assumes that its
caller has already checked that the key was pressed in an appropriate buffer
and has moved the cursor there.
If key is pressed:
(1) on the text of a linked call tree item, jumps to the items definition;
(2) on or after the last line in the buffer, quits from the profiler report.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-mouse.el
;;; ************************************************************************
;;; smart-profiler-report functions
;;; ************************************************************************
(defun smart-profiler-report ()
"Use a single key or mouse key to jump to call tree items with links.
Invoked via a key press when in ``profiler-report-mode'. It assumes that its
caller has already checked that the key was pressed in an appropriate buffer
and has moved the cursor there.
If key is pressed:
(1) on the text of a linked call tree item, jumps to the items definition;
(2) on or after the last line in the buffer, quits from the profiler report."
(interactive)
(cond
;; If on last line, quit from mode
((last-line-p)
(quit-window))
;; If on the text of an entry, jump to its definition if is a link
((text-property-any (point) (1+ (point)) 'face 'link)
(let* ((dbuf)
(obuf (current-buffer)))
(profiler-report-find-entry)
(setq dbuf (window-buffer (selected-window)))
(switch-to-buffer obuf)
(hpath:display-buffer dbuf)))))