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

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

Re: List of all functions (recursively) called by a function?


From: Pascal J. Bourguignon
Subject: Re: List of all functions (recursively) called by a function?
Date: Tue, 30 Nov 2010 14:34:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Elena <egarrulo@gmail.com> writes:

> is there a way to get the list of all functions (recursively) called
> by a function?

Probably.  I don't know if there is already a tool to build the call
graph for emacs lisp, but these tools exist for various languages
including lisps.

> Once a while, my Emacs hangs.  It usually happens when interacting
> with the file-system.  I've tried isolating the function which causes
> the hang, by means of  `keyboard-quit' after having set `debug-on-
> error' to true, but without success, since `keyboard-quit' does not
> break the hang.  Therefore, I've been thinking about running a
> profiler on functions during which the hang happens.  One of these
> functions is `ido-find-file'.  The profiling package "elp" has
> correctly identified this function as spending a lot of time.  Now,
> I'd like to profile all functions called by `ido-find-file' to catch
> the misbehaving one.
>
> Any pointers?  Thanks.

You would need a debugger such as:
http://video.google.com/videoplay?docid=3897010229726822034#
Perhaps you'd be interested in writing one for emacs lisp?

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.


reply via email to

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