* speeding up time to hit first breakpoint
@ 2016-10-03 10:04 Noel Grandin
2016-10-03 11:16 ` Jan Kratochvil
0 siblings, 1 reply; 2+ messages in thread
From: Noel Grandin @ 2016-10-03 10:04 UTC (permalink / raw)
To: gdb
Hi
I'm debugging LibreOffice, which can be a bit of a GDB stress test :-)
And it can take 30 seconds or so between me hitting the key stroke that triggers a breakpoint and getting to the GDB
command line console.
I took a trace with 'perf record -g', which I'm enclosing. It looks like the bulk of the time is spent in xrealloc.
Perhaps there is something that can be sized more appropriately up front to prevent the reallocating?
Anyway, thanks for the powerful tool :-)
Cheers, Noel grandin
Children Self Command Shared Object Symbol
- 99.18% 98.83% gdb libc-2.23.so [.] __memset_sse2
- __memset_sse2
- 99.08% _int_free
_int_realloc
realloc_check
realloc
- xrealloc
- 99.05% decode_frame_entry
dwarf2_build_frame_info
dwarf2_frame_find_fde
dwarf2_frame_sniffer
frame_unwind_try_unwinder
frame_unwind_find_by_frame
get_prev_frame_if_no_cycle
get_prev_frame_always
get_prev_frame
unwind_to_current_frame
catch_exceptions_with_msg
get_current_frame
handle_inferior_event
fetch_inferior_event
inferior_event_handler
gdb_wait_for_event
gdb_do_one_event
start_event_loop
captured_command_loop
catch_errors
captured_main
catch_errors
gdb_main
main
__libc_start_main
_start
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: speeding up time to hit first breakpoint
2016-10-03 10:04 speeding up time to hit first breakpoint Noel Grandin
@ 2016-10-03 11:16 ` Jan Kratochvil
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kratochvil @ 2016-10-03 11:16 UTC (permalink / raw)
To: Noel Grandin; +Cc: gdb
On Mon, 03 Oct 2016 12:04:27 +0200, Noel Grandin wrote:
> I took a trace with 'perf record -g', which I'm enclosing. It looks like the
> bulk of the time is spent in xrealloc.
GDB unspecific but you can significantly improve the times by linking GDB
with: -ltcmalloc
Jan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-03 11:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-03 10:04 speeding up time to hit first breakpoint Noel Grandin
2016-10-03 11:16 ` Jan Kratochvil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox