From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30907 invoked by alias); 6 Jun 2006 07:05:43 -0000 Received: (qmail 30896 invoked by uid 22791); 6 Jun 2006 07:05:41 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 06 Jun 2006 07:05:36 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FnVd3-0008RV-Q8 for gdb@sources.redhat.com; Tue, 06 Jun 2006 09:05:29 +0200 Received: from zigzag.lvk.cs.msu.su ([158.250.17.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Jun 2006 09:05:29 +0200 Received: from ghost by zigzag.lvk.cs.msu.su with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Jun 2006 09:05:29 +0200 To: gdb@sources.redhat.com From: Vladimir Prus Subject: MI: -var-update performance Date: Tue, 06 Jun 2006 07:05:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.8.2 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00036.txt.bz2 Hi, I'm running into a case where -var-update takes about 2 seconds to execute. There's quite a lot of varobjs, but 2 seconds is beyond any expectation. Here's the profile: Each sample counts as 0.01 seconds. % cumulative self self total time seconds seconds calls Ts/call Ts/call name 22.44 70.23 70.23 lookup_partial_symbol 19.65 131.72 61.49 lookup_minimal_symbol_by_pc_section 15.80 181.16 49.44 basic_lookup_transparent_type 10.39 213.67 32.51 find_pc_sect_psymtab 5.25 230.11 16.45 strcmp_iw_ordered 2.50 237.93 7.82 find_pc_sect_section 1.96 244.06 6.13 dwarf2_frame_find_fde 1.88 249.94 5.89 strcmp_iw 1.21 253.72 3.78 read_partial_die 1.02 256.90 3.18 lookup_symbol_aux_psymtabs 0.97 259.94 3.04 symbol_search_name Any ideas what's up? Should I try to rebuild gdb with --enable-profiling to get call graph? - Volodya