From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14935 invoked by alias); 1 May 2012 17:49:30 -0000 Received: (qmail 14913 invoked by uid 22791); 1 May 2012 17:49:29 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 01 May 2012 17:49:18 +0000 From: "dje at google dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/10952] Single Stepping into functions is very slow when not setting LD_BIND_NOW env variable Date: Tue, 01 May 2012 17:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dje at google dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 7.1 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2012-q2/txt/msg00064.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=10952 --- Comment #3 from dje at google dot com 2012-05-01 17:48:45 UTC --- Some profiling data for the 30 seconds to step 1800 insns of dynsym resolving code case. gdb compiled with -g -pg -ftest-coverage -fprofile-arc. This is with gdb 7.4. gprof output: Each sample counts as 0.01 seconds. % cumulative self self total time seconds seconds calls ms/call ms/call name 35.22 6.97 6.97 18756 0.37 0.37 find_pc_sect_psymtab 8.84 8.72 1.75 1925 0.91 0.91 find_pc_sect_symtab 7.38 10.18 1.46 29385 0.05 0.12 dwarf2_read_abbrevs 7.33 11.63 1.45 167485647 0.00 0.00 read_unsigned_leb128 4.40 12.50 0.87 358406 0.00 0.00 cpname_parse 3.59 13.21 0.71 5015596 0.00 0.00 hash_continue 2.68 13.74 0.53 762409 0.00 0.00 strcmp_iw_ordered 2.27 14.19 0.45 15061184 0.00 0.00 dwarf2_lookup_abbrev 2.12 14.61 0.42 5946084 0.00 0.00 cpname_lex 1.54 14.92 0.31 d_print_comp 1.52 15.22 0.30 12193270 0.00 0.00 read_attribute_value 1.41 15.50 0.28 2013893 0.00 0.00 read_partial_die 1.16 15.73 0.23 10510160 0.00 0.00 dwarf_alloc_abbrev 1.06 15.94 0.21 29094 0.01 0.12 load_partial_dies 1.06 16.15 0.21 152021 0.00 0.00 msymbol_hash_iw For find_pc_sect_psymtab, gcov shows this interesting tidbit: 85699863: 364: ALL_OBJFILE_PSYMTABS_REQUIRED (objfile, pst) 148591017: 365: if (!pst->psymtabs_addrmap_supported 62909784: 366: && pc >= pst->textlow && pc < pst->texthigh) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.