[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14987: Where is the time spent?
From: |
Nicolas Richard |
Subject: |
bug#14987: Where is the time spent? |
Date: |
Tue, 30 Jul 2013 18:05:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Hi,
"Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
writes:
> With the minimal .emacs file given previously:
Based on Stefan's answer, here's the .emacs file I used to do some tests
for myself :
--8<---------------cut here---------------start------------->8---
(defconst em/emacs-load-time-start (float-time))
(message "%s Beginning" (format-time-string "[%Y-%m-%d %T.%3N] "))
(defadvice message (before leuven-when-was-that activate)
"Add timestamps to `message' output."
(ad-set-arg 0 (concat (format-time-string "[%Y-%m-%d %T.%3N] ")
(ad-get-arg 0))))
(message "Advice set")
(dotimes (i 10)
(setq org-ellipsis
(if (char-displayable-p ?\u25B7) ;; white right-pointing triangle
" \u25B7" ;; string
'org-ellipsis))
(message "Call nr %s" (1+ i)))
(message "Loading Minimal Emacs... Done (in %.3f s)"
(- (float-time) em/emacs-load-time-start))
--8<---------------cut here---------------start------------->8---
(I also did some unnecessary modifications.)
Now it seems to match perfectly (defadvice takes some time here, too)
--
Nico.