Created
April 18, 2013 06:20
-
-
Save sluchin/5410574 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; ロード履歴の表示 | |
(defun print-load () | |
"Print load-history." | |
(interactive) | |
(let ((all 0)) | |
(dolist (lst load-history) | |
(let* ((file (car lst)) | |
(bytes (nth 7 (file-attributes file)))) | |
(message "%-8s %s" bytes file) | |
(setq all (+ all bytes)))) | |
(message "%dM (%d)" (/ (/ all 1024) 1024) all))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment