From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0B18A3851C24; Tue, 2 Jun 2020 17:42:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B18A3851C24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1591119772; bh=BN9PcYRd08y8RpaPenXl57/VYJAdv/zhV0JgsTPMyCk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VLfXzk01KINnwHeUQN8OHdX0ASsafTBnBfy2f+LdCKCxNJDBz3pVovL5puhz1cmbQ OQl42+nXcE2hQrCzhQ7rON0m19g8luOoQ95LC2iGBL8XMg7uYjYcIVY4l0UV/r0GTQ lQRTV8y+6pYWTFBYM99AW0fO81H3TCVMAZ6OArjU= From: "qinzhao at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/95348] GCC records zero functions and modules in the profiling data file, ICC does NOT Date: Tue, 02 Jun 2020 17:42:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: qinzhao at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2020 17:42:52 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95348 --- Comment #24 from qinzhao at gcc dot gnu.org --- with the patch added to gcc11, I tested it with the small testing case, and= got the following data: ******without the patch: qinzhao@gcc14:~/Bugs/profile/small_gcc/gcc_prof_dir/13248$ ls -l -rw-r--r-- 1 qinzhao qinzhao 100 Jun 2 19:02 #home#qinzhao#Bugs#profile#small_gcc#five.gcda -rw-r--r-- 1 qinzhao qinzhao 184 Jun 2 19:02 #home#qinzhao#Bugs#profile#small_gcc#lib.gcda -rw-r--r-- 1 qinzhao qinzhao 100 Jun 2 19:02 #home#qinzhao#Bugs#profile#small_gcc#ten.gcda ******with the patch: qinzhao@gcc14:~/Bugs/profile/small_gcc/gcc_prof_dir/20668$ ls -l -rw-r--r-- 1 qinzhao qinzhao 68 Jun 2 19:34 #home#qinzhao#Bugs#profile#small_gcc#five.gcda -rw-r--r-- 1 qinzhao qinzhao 144 Jun 2 19:34 #home#qinzhao#Bugs#profile#small_gcc#lib.gcda -rw-r--r-- 1 qinzhao qinzhao 100 Jun 2 19:34 #home#qinzhao#Bugs#profile#small_gcc#ten.gcda from the above data, we can see: 1. there are size reduction for "five.c" and "lib.c" as expected. 2. However, we still keep the *.gcda file for five.c even though there is no any meaningful data in this file.=20 I will try to get more data on our real application.=20 one question: why not just delete the entire records whose counter is zero = and delete the entire file whose counter is zero?=