-
Notifications
You must be signed in to change notification settings - Fork 0
/
init-benchmark-init.el
35 lines (30 loc) · 1.66 KB
/
init-benchmark-init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
;; ;; * load with use-package
;; (if (file-exists-p (expand-file-name "straight/build/benchmark-init/benchmark-init.el" user-emacs-directory))
;; (progn
;; (add-to-list 'load-path (expand-file-name "straight/build/benchmark-init" user-emacs-directory))
;; (require 'benchmark-init)
;; (autoload #'benchmark-init/activate "benchmark-init")
;; (autoload #'benchmark-init/deactivate "benchmark-init")
;; ;; (autoload #'benchmark-init/show- "benchmark-init")
;; ;; (autoload #'benchmark-init/deactivate "benchmark-init")
;; (benchmark-init/activate)
;; (add-hook 'my/startup-hook 'benchmark-init/deactivate)))
;; ;; to install if not available after int. and to make sure load correctly.
;; (add-hook 'my/startup-hook #'(lambda () (straight-use-package 'benchmark-init)))
;; ;; (use-package benchmark-init
;; ;; ;; :load-path (lambda () (expand-file-name "straight/repos/benchmark-init" user-emacs-directory))
;; ;; :config
;; ;; ;; To disable collection of benchmark data after init is done.
;; ;; (add-hook 'my/startup-hook 'benchmark-init/deactivate))
;; ;; * load with emacs require
;; (autoload #'benchmark-init/activate "benchmark-init")
;; (autoload #'benchmark-init/deactivate "benchmark-init")
;; (autoload #'benchmark-init/show-durations-tabulated "benchmark-init")
;; (autoload #'benchmark-init/show-durations-tree "benchmark-init")
(add-to-list 'load-path "~/.conf.d/extra.d/benchmark-init-el/")
(require 'benchmark-init)
;; generate `benchmark-init-loaddefs' with `make' CLI command
(require 'benchmark-init-loaddefs)
(benchmark-init/activate)
(add-hook 'my/startup-hook 'benchmark-init/deactivate)
(provide 'init-benchmark-init)