From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73354 invoked by alias); 26 Nov 2019 11:11:12 -0000 Mailing-List: contact dwz-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: dwz-owner@sourceware.org Received: (qmail 73344 invoked by uid 89); 26 Nov 2019 11:11:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.3 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.1 spammy=027, HX-Languages-Length:1055 X-Spam-Status: No, score=-25.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on sourceware.org X-Spam-Level: X-HELO: mx1.suse.de X-Virus-Scanned: by amavisd-new at test-mx.suse.de Date: Tue, 01 Jan 2019 00:00:00 -0000 From: Tom de Vries To: dwz@sourceware.org, jakub@redhat.com Subject: [committed] Mention DIE counting phase with --devel-trace Message-ID: <20191126111105.GA6025@delia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-SW-Source: 2019-q4/txt/msg00077.txt.bz2 Hi, Now that DIE counting is an additional phase, mention it in the trace: ... $ cp cc1 1; time.sh dwz 1 --devel-trace Compressing 1 +Counting DIEs Hit low-mem die-limit Compressing 1 in low-mem mode maxmem: 655324 real: 9.81 user: 9.53 system: 0.27 ... Which makes it also clear when we're not using that phase: ... $ cp cc1 1; time.sh dwz 1 -l11000000 --devel-trace Compressing 1 maxmem: 1177616 real: 5.89 user: 5.55 system: 0.33 ... Committed to trunk. Thanks, - Tom Mention DIE counting phase with --devel-trace 2019-11-26 Tom de Vries * dwz.c (try_debug_info): Mention DIE counting phase in trace. --- dwz.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dwz.c b/dwz.c index fc41b0e..095af49 100644 --- a/dwz.c +++ b/dwz.c @@ -4900,6 +4900,9 @@ try_debug_info (DSO *dso) unsigned ret = 1; int kind = DEBUG_INFO; + if (tracing) + fprintf (stderr, "Counting DIEs\n"); + ndies = 0; ptr = debug_sections[kind].data; endsec = ptr + debug_sections[kind].size;