Skip to content

Instantly share code, notes, and snippets.

@sluchin
Created April 18, 2013 06:20
Show Gist options
  • Save sluchin/5410574 to your computer and use it in GitHub Desktop.
Save sluchin/5410574 to your computer and use it in GitHub Desktop.
;; ロード履歴の表示
(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