Hi everyone,
I started investigating my gdb build's slowness. I am currently comparing
mingw-builds vs my builds and notice a 6-8 (mingw-builds) vs 14-16 (mine)
second startup time of a simple QWidget application. I have tried the GDB
7.5 release, and I see the same results. For simplicity's sake, I'm
building and rebuilding GDB without Python from MSYS. So I think I've ruled
out:
- cross vs native compiled gdb
- debug info in the loaded libraries themselves
- GDB release vs SVN trunk
When I do
gdb testapp
set verbose on
run
I see that the extra time is spent in the "Loading Symbols from"
QtCore4d.dll (2 vs 6 seconds) and QtGui4d.dll (6 vs 18 seconds). This is my
visual perception only.
I have now rebuilt gdb with "--disable-nls" and I believe this is the
thing. Don't ask me why this is. The startup time reduces from ~19 seconds
to 6-7 seconds, which is the same as mingw-builds gdb.
Should I report a bug for this to the gdb devs? I doubt I will be able to
describe it well enough to be helpful, nor do I think this will have a high
priority...
Another mystery solved by your anonymous hero,
Ruben
2012/9/12 <[email protected]>
> K. Frank wrote:
> > >> Kai wrote:
> > >>> [...] The only other
> > >>> difference from the log is that rubenv's gdb also prints some
> '=cmd-param-
> > >>> changed,param="' messages, while mingw-builds does not.
> > >>
> > >> What log is this? I haven't notices gdb emitting any unexpected
> messages, but
> > >> I'd be glad to look if this might be a hint about something.
> > >
> > > This is from the debugger log output of Qt Creator
> (Window->Views->Debugger Log).
> > > Logging the exact times a command took can be enabled in the context
> menu.
> >
> > Okay. I don't use Qt Creator, so I guess I don't have this log.
>
> That's also available as "normal" GDB/MI output.
>
> You should get it when starting gdb with -i mi on the command line.
>
> Andre'
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public