Grouped startup profiler related code with debug related.
--- a/init.el Sat Jan 30 22:41:51 2021 +0200
+++ b/init.el Sat Jan 30 22:44:34 2021 +0200
@@ -7,7 +7,10 @@
;; For load order see README.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-(message "turn on debugger during loading")
+(message "turn on debugger/profiler during loading")
+
+(when my-profiler-enabled
+ (profiler-start 'cpu))
(defun my-debug (mode)
"With any prefix enables entering into a debuger and shows the
@@ -46,9 +49,6 @@
(load my-lisp-auth t)
(load my-lisp-pre)
-(when my-profiler-enabled
- (profiler-start 'cpu))
-
(my-lisp--load-usr-home)
;; (setq package-enable-at-startup t)
@@ -59,11 +59,11 @@
(load my-lisp-dotemacs t)
(load my-lisp-post t)
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+(message "turn off debugger/profiler after loading")
+
+(my-debug nil)
+
(when my-profiler-enabled
(profiler-report)
(profiler-stop))
-
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-(message "turn off debugger after loading")
-
-(my-debug nil)