Function: magit-run-hook-with-benchmark

magit-run-hook-with-benchmark is a byte-compiled function defined in magit-mode.el.

Signature

(magit-run-hook-with-benchmark HOOK)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-mode.el
(defun magit-run-hook-with-benchmark (hook)
  (cond
    ((not hook))
    (magit-refresh-verbose
     (message "Running %s..." hook)
     (message "Running %s...done (%.3fs)" hook
              (benchmark-elapse
                (run-hook-wrapped
                 hook
                 (lambda (fn)
                   (message "  %-50s %f" fn (benchmark-elapse (funcall fn))))))))
    ((run-hooks hook))))