Lars Ingebrigtsen
1c3e45396e
Rename button-buttonize to buttonize
...
* lisp/help.el (help--describe-command):
* lisp/emacs-lisp/memory-report.el (memory-report--buffers):
* lisp/button.el (button-buttonize):
* doc/lispref/display.texi (Making Buttons): Rename
button-buttonize to just buttonize and adjust callers.
2021-11-04 18:14:29 +01:00
Lars Ingebrigtsen
e498e5be20
Make `memory-report-object-size' work standalone
...
* lisp/emacs-lisp/memory-report.el (memory-report--type-size):
Default to nil so that the test in `memory-report-object-size' works.
(memory-report--set-size): Initialize
memory-report-object-size.
2021-10-05 08:40:58 +02:00
Yikai Zhao
d8d5dc4565
memory-report: support calculating size for structures
...
* lisp/emacs-lisp/memory-report.el (memory-report--object-size-1): Add
support for cl-defstruct types (bug#50301).
2021-09-02 09:37:06 +02:00
Yikai Zhao
adb6c3f1a4
Fix memory-report counting of vector/hash table sizes
...
* lisp/emacs-lisp/memory-report.el (memory-report--object-size-1):
Count element values in vectors and hash tables.
Copyright-paperwork-exempt: yes
2021-08-14 13:46:37 +02:00
Mattias Engdegård
24a8cc5e70
Define revert-buffer-function for *Memory Report*
...
* lisp/emacs-lisp/memory-report.el (memory-report):
Allow the memory report buffer to be updated by pressing 'g'.
2021-07-16 20:05:31 +02:00
Stefan Monnier
c42dc493d1
* lisp/emacs-lisp/memory-report.el (memory-report--object-size-1): Simplify
2021-04-12 12:55:52 -04:00
Lars Ingebrigtsen
21e1a126b5
Make memory-report work with buffer-local unbound vars
...
* lisp/emacs-lisp/memory-report.el (memory-report--buffer-data):
Protect against buffer-local unbound variables (bug#47057).
2021-03-18 08:33:40 +01:00
Paul Eggert
ba05d005e5
Update copyright year to 2021
...
Run "TZ=UTC0 admin/update-copyright".
2021-01-01 01:13:56 -08:00
Lars Ingebrigtsen
dc771b6c40
Also count symbol plists in memory-report
...
* lisp/emacs-lisp/memory-report.el (memory-report--symbol-plist):
New function.
(memory-report): Use it.
2020-12-30 08:29:06 +01:00
Lars Ingebrigtsen
90e40099de
Fix infloop in memory-report
...
* lisp/emacs-lisp/memory-report.el (memory-report--object-size-1):
Fix infloop on circular lists.
2020-12-26 00:57:01 +01:00
Mattias Engdegård
4c7df434a0
Correct units and spacing in memory-report
...
* lisp/emacs-lisp/memory-report.el (memory-report--format):
Use IEC unit prefixes and a space before.
2020-12-19 16:48:02 +01:00
Andrea Corallo
831659b3b8
* Fix `memory-report' for '--without-x' builds
...
* lisp/emacs-lisp/memory-report.el
(memory-report--image-cache): Don't call `image-cache-size' if
unbound.
2020-12-13 11:09:20 +01:00
Lars Ingebrigtsen
b04f322a9b
Also sort the totals section by size
...
* lisp/emacs-lisp/memory-report.el (memory-report): Sort the
totals by size, too.
2020-12-11 18:58:41 +01:00
Lars Ingebrigtsen
c7c261ebdf
Tweak memory-report--format
...
* lisp/emacs-lisp/memory-report.el (memory-report--format): Make
everything line up, even when there's "1023.4kB".
2020-12-11 18:48:44 +01:00
Lars Ingebrigtsen
004d7e97e2
Add a new command `memory-report'
...
* doc/lispref/internals.texi (Garbage Collection): Document it.
* lisp/emacs-lisp/memory-report.el: New package.
2020-12-11 14:49:53 +01:00