From b89a317422a441a60327bff2de62f0ca69fa36f9 Mon Sep 17 00:00:00 2001 From: Hugo Thunnissen Date: Thu, 22 Jun 2023 15:03:11 +0200 Subject: [PATCH] Add GC statistics gathering --- emacs/init.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/emacs/init.el b/emacs/init.el index 41b1696..efa39c3 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -21,6 +21,13 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;; GLOBAL MODES ;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +;; GC statistics(https://www.reddit.com/r/emacs/comments/14dej62/please_help_collecting_statistics_to_optimize/). +(require 'emacs-gc-stats) +(setq emacs-gc-stats-gc-defaults 'emacs-defaults) ; optional +(emacs-gc-stats-mode +1) + + (require 'flyspell) (add-hook 'prog-mode-hook 'flyspell-prog-mode)