Function: magit-toggle-profiling

magit-toggle-profiling is an interactive and byte-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

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/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-"))))