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

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

Re: Tracing what is loading


From: Juanma Barranquero
Subject: Re: Tracing what is loading
Date: Sun, 7 Dec 2008 09:58:56 +0000

On Sun, Dec 7, 2008 at 00:34, Harry Putnam <reader@newsguy.com> wrote:

> ;;[Tip from Kai G] make loaded files give a message
>  (defadvice load (before debug-log activate)
> (message "Now loading: %s" (locate-library (ad-get-arg 0))))
>
> That will tell exactly what is loading and in what order.

That will skip calls to Fload from C code (defadvice does not work for
calls from C).

> Maybe there is a better or hopefully simpler way like possibly
> compiling something directly into the binary when it is compiled.

Not necessarily simpler. If you want to do that on a permanent basis,
you can add code to Fload to show a message. If it is just once for
some debugging, you can use the trace facilities of GDB.

    Juanma




reply via email to

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