[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/memory-usage 2f446d8 3/9: Fix bug in `memory-usage' pac
From: |
Stefan Monnier |
Subject: |
[elpa] externals/memory-usage 2f446d8 3/9: Fix bug in `memory-usage' package. |
Date: |
Tue, 1 Dec 2020 16:21:13 -0500 (EST) |
branch: externals/memory-usage
commit 2f446d8d42882c89d96aacbfdd3052d5bdcbe91f
Author: Chong Yidong <cyd@gnu.org>
Commit: Chong Yidong <cyd@gnu.org>
Fix bug in `memory-usage' package.
The 4th slot of `garbage-collect' is a number not a cons.
---
memory-usage.el | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/memory-usage.el b/memory-usage.el
index 71644af..b8c5401 100644
--- a/memory-usage.el
+++ b/memory-usage.el
@@ -23,7 +23,7 @@
;;; Commentary:
-;; This package provide the command `memory-usage', which lists all
+;; This package provides the command `memory-usage', which lists all
;; buffers and how much memory they use.
;;; Code:
@@ -81,9 +81,7 @@
(insert (format "\t%d+%d bytes in intervals\n" (car intervals) (cdr
intervals)))
(insert (format "\t%d+%d bytes in string headers\n" (car strings) (cdr
strings)))
(insert (format "\t%d bytes of string chars\n" chars))
- (insert (format "\t%d bytes of vector headers\n" (* 2
memory-usage-word-size (car vectors))))
- (insert (format "\t%d bytes of vector slots\n" (* memory-usage-word-size
(cdr vectors))))
-
+ (insert (format "\t%d bytes of vector slots\n" chars))
(let ((live (+ (car conses)
(car symbols)
(car markers)
@@ -91,8 +89,7 @@
(car intervals)
(car strings)
chars
- (* 2 memory-usage-word-size (car vectors))
- (* memory-usage-word-size (cdr vectors))))
+ vectors))
(dead (+ (cdr conses)
(cdr symbols)
(cdr markers)
- [elpa] branch externals/memory-usage created (now c7a9420), Stefan Monnier, 2020/12/01
- [elpa] externals/memory-usage a88374c 1/9: * memory-usage: New package., Stefan Monnier, 2020/12/01
- [elpa] externals/memory-usage bc4e515 2/9: Add version tag and commentary to the memory-usage package., Stefan Monnier, 2020/12/01
- [elpa] externals/memory-usage 2f446d8 3/9: Fix bug in `memory-usage' package.,
Stefan Monnier <=
- [elpa] externals/memory-usage 0c25f6f 4/9: * memory-usage.el (memory-usage): Fix vector size display., Stefan Monnier, 2020/12/01
- [elpa] externals/memory-usage c7a9420 9/9: * .gitignore: New file, Stefan Monnier, 2020/12/01
- [elpa] externals/memory-usage 0d09e8a 6/9: memory-usage (memory-usage-find-large-variables): New command., Stefan Monnier, 2020/12/01
- [elpa] externals/memory-usage 1351de6 5/9: * memory-usage.el (memory-usage-format): New function., Stefan Monnier, 2020/12/01
- [elpa] externals/memory-usage 23b0815 7/9: * memory-usage.el: Adjust for new values of garbage-collect., Stefan Monnier, 2020/12/01
- [elpa] externals/memory-usage cb73fe6 8/9: * memory-usage: Bump version, belatedly., Stefan Monnier, 2020/12/01