Fix memory-report-object-size to initialize memory-report--type-size
* lisp/emacs-lisp/memory-report.el (memory-report-object-size): Allow using function directly (bug#53310). Do not merge to master.
This commit is contained in:
parent
f08dfa9b53
commit
fbc9b121e0
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ by counted more than once."
|
|||
|
||||
(defun memory-report-object-size (object)
|
||||
"Return the size of OBJECT in bytes."
|
||||
(unless memory-report--type-size
|
||||
(when (zerop (hash-table-count memory-report--type-size))
|
||||
(memory-report--garbage-collect))
|
||||
(memory-report--object-size (make-hash-table :test #'eq) object))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue