List Info

Thread: MI: performance of getting stack arguments




MI: performance of getting stack arguments
user name
2006-04-19 07:30:06
> From:  Vladimir Prus <ghostcs.msu.su>
> Date:  Tue, 18 Apr 2006 20:10:34 +0400
> 
> I've run into a performance problem with
"-stack-list-arguments 1" command.
> I issue the command in order to obtain stack arguments
for all frames, and
> I've 129 frames. Each frame has just a couple of
arguments. However, the
> command execution takes 608 ms.

That's an awful lot, I think.  When I debug Emacs, there
are sometimes
many _thousands_ of frames on the call stack (during GC, for
example).

> If this command is issued repeatedly, the time is
roughly the same. 
> 
> 1. Any ideas why the command takes so long?

GDB has a facility to profile itself (see "maint set
profile").
Perhaps you could use that to find out where is the time
sink.
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )