From 02bb72e5ea6cc4b710e3d94930d4b382eeff1eee Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Fri, 16 Jun 2023 14:45:47 +0300 Subject: Add email address to share the results * emacs-gc-stats.el (emacs-gc-stats-save-session): Tell user where to share the results. * README.org: Update, adding email address to be used for sharing the results. --- README.md | 3 ++- README.org | 3 ++- emacs-gc-stats.el | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2717fa5..c817901 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,8 @@ to your init file to enable the statistics acquiring. When you are ready to share the results, run `M-x emacs-gc-stats-save-session` and then share the saved `emacs-gc-stats-file` (defaults to -`~/.emacs.d/emacs-gc-stats.eld`). +`~/.emacs.d/emacs-gc-stats.eld`) by sending an email attachment to +. You can use `M-x emacs-gc-stats-clear` to clear the currently collected session data. diff --git a/README.org b/README.org index 4d37232..d64b1be 100644 --- a/README.org +++ b/README.org @@ -19,7 +19,8 @@ to your init file to enable the statistics acquiring. When you are ready to share the results, run =M-x emacs-gc-stats-save-session= and then share the saved ~emacs-gc-stats-file~ (defaults to -=~/.emacs.d/emacs-gc-stats.eld=). +=~/.emacs.d/emacs-gc-stats.eld=) by sending an email attachment to +mailto:emacs-gc-stats@gnu.org. You can use =M-x emacs-gc-stats-clear= to clear the currently collected session data. diff --git a/emacs-gc-stats.el b/emacs-gc-stats.el index 6773d23..237f718 100644 --- a/emacs-gc-stats.el +++ b/emacs-gc-stats.el @@ -183,7 +183,8 @@ Otherwise, collect symbol." (if existing (setcdr (cdr existing) (cdr session)) (push session previous-sessions))) - (prin1 previous-sessions (current-buffer))))) + (prin1 previous-sessions (current-buffer))) + (message "GC stats saved to \"%s\". You can share the file by sending email to emacs-gc-stats@gnu.org" emacs-gc-stats-file))) (defun emacs-gc-stats-clear () "Clear GC stats collected so far." -- cgit v1.0