From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: elp-instrument-package does not return anything Date: Fri, 21 Dec 2012 23:25:32 +0100 Message-ID: <80pq23niub.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello, For the sake of finding potential bottlenecks in my config, I'm looking back at elp. I've the following minimal Emacs config file for the current work: #+begin_src emacs-lisp (message "Loading Minimal Emacs...") ;; change the pathnames appropriately! (add-to-list 'load-path (expand-file-name "~/src/org-mode/lisp")) (add-to-list 'load-path (expand-file-name "~/src/org-mode/contrib/lisp")) (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode)) ;; profile some times... (when (require 'elp) ;; the most important ones (elp-instrument-package "org") (elp-instrument-package "org-agenda") (elp-instrument-package "outline") (elp-instrument-package "font-lock") (elp-instrument-package "flyspell") (elp-instrument-package "ispell") (elp-instrument-package "emacs-leuven") (elp-instrument-package "calendar") (elp-instrument-package "cal-iso") (elp-instrument-package "diary-lib") (global-set-key "\C-ce" 'elp-results)) (setq org-agenda-files (append ;; org-directory (file-expand-wildcards "~/Personal/*.org") (file-expand-wildcards "~/Projects/*.org"))) (defconst em/emacs-load-time-start (float-time)) (org-agenda-list) (message "Loading Minimal Emacs... Done (in %.2f s)" (- (float-time) em/emacs-load-time-start)) #+end_src Quite simple, no? Though, for whatever unknown reason, when calling elp-results, I just get info about font-lock: --8<---------------cut here---------------start------------->8--- font-lock-mode 177 0.03 0.0001694915 font-lock-default-function 177 0.015 8.47...e-005 font-lock-compile-keywords 44 0.015 0.0003409090 font-lock-mode-internal 88 0.015 0.0001704545 font-lock-set-defaults 89 0.015 0.0001685393 font-lock-fontify-region 1 0.0 0.0 font-lock-choose-keywords 44 0.0 0.0 font-lock-extend-jit-lock-region-after-change 9 0.0 0.0 font-lock-default-fontify-region 1 0.0 0.0 font-lock-value-in-major-mode 220 0.0 0.0 font-lock-default-unfontify-region 1 0.0 0.0 font-lock-specified-p 309 0.0 0.0 font-lock-unfontify-region 1 0.0 0.0 font-lock-fontify-syntactically-region 1 0.0 0.0 font-lock-initial-fontify 177 0.0 0.0 font-lock-fontify-keywords-region 1 0.0 0.0 font-lock-turn-on-thing-lock 88 0.0 0.0 font-lock-compile-keyword 1628 0.0 0.0 font-lock-change-mode 44 0.0 0.0 font-lock-extend-region-multiline 1 0.0 0.0 font-lock-extend-region-wholelines 1 0.0 0.0 font-lock-eval-keywords 88 0.0 0.0 --8<---------------cut here---------------end--------------->8--- Nothing about Org!? I'm really out of ideas about what to do to get those Org profiling results? Any idea of what I'm doing wrong (I guess)? Best regards, Seb -- Sebastien Vauban