Function: magit-toggle-profiling
magit-toggle-profiling is an interactive and natively compiled
function defined in magit-mode.el.
Signature
(magit-toggle-profiling)
Documentation
Start profiling Magit, or if in progress, stop and display the results.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-mode.el
(defun magit-toggle-profiling ()
"Start profiling Magit, or if in progress, stop and display the results."
(interactive)
(require (quote elp))
(cond ((catch 'in-progress
(mapatoms (##and (get % elp-timer-info-property)
(throw 'in-progress t))))
(message "Stop profiling and display results...")
(elp-results)
(elp-restore-all))
(t
(message "Start profiling Magit and Forge...")
(elp-reset-all)
(elp-instrument-package "magit-")
(elp-instrument-package "forge-"))))