diff options
| author | Chong Yidong <cyd@gnu.org> | 2011-10-23 15:33:07 +0800 |
|---|---|---|
| committer | Chong Yidong <cyd@gnu.org> | 2011-10-23 15:33:07 +0800 |
| commit | bc4e515e4c9cba2f964698bc209fae6b933ba67d (patch) | |
| tree | 5c7dfd9e8f9623df397057fa2d87d1fba48b3e45 | |
| parent | a88374c8c0a4392bf0f253fb095df92b40f8f3bc (diff) | |
Add version tag and commentary to the memory-usage package.
| -rw-r--r-- | memory-usage.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/memory-usage.el b/memory-usage.el index 9c6cdca..71644af 100644 --- a/memory-usage.el +++ b/memory-usage.el @@ -4,6 +4,7 @@ ;; Author: Stefan Monnier <monnier@cs.yale.edu> ;; Keywords: maint +;; Version: 0.1 ;; This file is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -22,7 +23,8 @@ ;;; Commentary: -;; +;; This package provide the command `memory-usage', which lists all +;; buffers and how much memory they use. ;;; Code: @@ -45,7 +47,7 @@ "Return total number of ralloc bytes used by buffer." (with-current-buffer b (save-restriction - (widen) + (widen) (+ (position-bytes (point-max)) (- (position-bytes (point-min))) (gap-size))))) |
