Grouped startup profiler related code with debug related.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 30 Jan 2021 22:44:34 +0200
changeset 1712 5ed78a45b299
parent 1711 621215ccccf9
child 1713 a2f35bf9a928
Grouped startup profiler related code with debug related.
init.el
--- 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)