help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tracking down why emacsclient -c is so slow


From: A.Politz
Subject: Re: Tracking down why emacsclient -c is so slow
Date: Sat, 22 Aug 2009 02:53:29 -0700 (PDT)
User-agent: G2/1.0

On Aug 22, 10:10 am, Alex Bennee <kernel-hac...@bennee.com> wrote:
> 2009/8/21 Peter Dyballa <Peter_Dyba...@web.de>:
>
>
>
> > Am 21.08.2009 um 20:25 schrieb Alex Bennee:
>
> >> Are there any other hooks run between after-make-frame-functions and
> >> server-visit-hook I can hook to to see why it takes so long?
>
> > Yes, they're called PCI, PCI-Express, AGP, and much more. Stick another and
> > faster graphics card in such a slot and you'll less consumed to create a new
> > frame.
>
> The current delays I'm seeing are a little excessive, especially
> considering that the rest of the OS doesn't seem to have too much
> problem displaying compiz and full-rate HD video.
>
> The results of the profile look like:
>
> Function Name                    Call Count  Elapsed Time  Average Time
> ===============================  ==========  ============  ============
> make-frame                       2           17.385781     8.6928905

>after-make-frame-functions at Fri Aug 21 19:18:21 2009
>server-visit-hook at Fri Aug 21 19:18:25 2009
>(No files need saving)

This together seem to imply, that the time is spent in one of the
after-make-frame-functions.

Have you done this with 'emacs -Q --daemon' ?

elp-instrument-list won't allow to profile all functions,
but you can do it anyway. Expect your emacs to be broken
afterwards.

(progn
  (require 'elp)
  (elp-instrument-list
   (mapcar #'intern
           (all-completions "" obarray
                            #'(lambda (sym)
                                (and (elp-profilable-p sym)
                                     (not (eq sym '+))))))))


-ap


reply via email to

[Prev in Thread] Current Thread [Next in Thread]