.emacs-pre
changeset 1688 0bab53c47567
parent 1679 5ee3a93090f0
--- a/.emacs-pre	Sat Jan 02 22:42:24 2021 +0200
+++ b/.emacs-pre	Sat Jan 02 23:11:23 2021 +0200
@@ -5,13 +5,12 @@
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; (message "profiler start")
 
-;; (profiler-start 'cpu)
-
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;; To disable activation desktop-save-mode as it ask for file overriding when
-;; two Emacs are loaded making difficult automating like:  time emacs-w32 --kill
-
-;; (setq my-no-desktop-save-mode t)
+;; Set to `t' and run:
+;;   time emacs-w32 --kill
+(setq my-profiler-enabled nil)
+;; Override default only when actually profiling... Default is 1000000 ns.
+(when my-profiler-enabled
+  (setq profiler-sampling-interval 100000))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; (message "libs pre-loading")