summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIhor Radchenko <yantar92@posteo.net>2023-06-16 14:45:47 +0300
committerIhor Radchenko <yantar92@posteo.net>2023-06-16 14:45:47 +0300
commit02bb72e5ea6cc4b710e3d94930d4b382eeff1eee (patch)
treecefa9aa013dcfd46d9ef25dcc9f27dd94c7c4c5f
parente40279002a3a43bd2ebec30292685e55b3ff0c84 (diff)
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.
-rw-r--r--README.md3
-rw-r--r--README.org3
-rw-r--r--emacs-gc-stats.el3
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
+<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/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."