Hi Igor,

> in the last time (maybe 3-4 weeks) I am noticing that orgmode starts
> very slowly. Yes, I know, this is highly subjective. 
> 
> Is there a way in emacs to `trace' what emacs is doing/loading?
> 
> I'm using: orgmode 7.9.3d on emacs 24.2.1 (archlinux)
> 
> PS: i'm speaking of ~10 files, most of them under 80Kb. Only one with
> 850kb and three with ~150Kb.

I've written the following code, which I'm using to get insight about "opening
times" (in and out of Org):

--8<---------------cut here---------------start------------->8---
  (defadvice find-file (around find-file-around activate)
    "Open FILENAME and report time spent."
    (let ((filename (ad-get-arg 0))
          (find-file-time-start (float-time)))
      (message "(info) Finding file %s..." filename)
      ad-do-it
      (message "(info) Found file %s in %.2f s." filename
               (- (float-time) find-file-time-start))))
--8<---------------cut here---------------end--------------->8---

Pretty useful (to me)...

Best regards,
  Seb

-- 
Sebastien Vauban


Reply via email to