doom--display-benchmark: fix plugin count for uncompiled state

This commit is contained in:
Henrik Lissner 2017-04-05 14:26:04 -04:00
parent 598f3bc640
commit f09fba5736

View file

@ -254,7 +254,10 @@ Used by `require!' and `depends-on!'."
(defun doom--display-benchmark ()
(message "Loaded %s packages in %.03fs"
(eval-when-compile (length doom--package-load-path))
;; Certainly imprecise, especially where custom additions to
;; load-path are concerned, but I don't mind a [small] margin of
;; error in the plugin count.
(- (length load-path) (length doom--base-load-path))
(setq doom-init-time (float-time (time-subtract after-init-time before-init-time)))))