Subject: Re: bug#14987: Where is the time spent?

From: Nicolas Richard <[email-masked]>
Date: Tue, 30 Jul 2013 18:05:34 +0200

Hi,

"Sebastien Vauban" <sva-news-D0wtAvR13HarG/[email-masked]>
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.