From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#72559: 31.0.50; profiler-report-write-profile produced unreadable data Date: Sat, 17 Aug 2024 17:27:08 +0300 Message-ID: <86o75r1ayr.fsf@gnu.org> References: <87wmko35yn.fsf@localhost> <877ccomqg3.fsf@protonmail.com> <867ccojqsd.fsf@gnu.org> <86plq731qz.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26569"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72559@debbugs.gnu.org, pipcet@protonmail.com, yantar92@posteo.net To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 17 16:28:39 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sfKQ1-0006f1-9S for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Aug 2024 16:28:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfKPp-0001ET-1R; Sat, 17 Aug 2024 10:28:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sfKPn-0001EI-I8 for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 10:28:23 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sfKPn-0003u4-8b for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 10:28:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=9yyp6MWomaSAiH7oKfFb80iUP5kr8aHSOYG/VwlNS88=; b=BCqzpdS1XGyNRWdXJIWOypcS6uRfSzy2tBdTRsQZ/8hYqmQaeO9BdhS3+vPZPCbVSoIaoLSgauwLLtSdhhOtxdCc2Y5xT50EFlhKD54rlNc0dB7P/9Fxwd5bLoPByY9WGVqu1BhNESWBSbG8Im1WiChSrnxPINeINJQbcK+g0K0Z4eAQDOvvXqBtef0tsAHFE3Kiy+5Qvj6AhBDi0RdOloW1jn/ckV81164xRODlbci6nGNajrr6/wzluGIXNHL14quzCF5HeI55Yklk5gJsy2LYb3lN9IBWIEL8BH2feO0gqX0LACSXcSH+XGVwcHc12V5hLP19/HuyDbdriqzipg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sfKQQ-0002jE-74 for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 10:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Aug 2024 14:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72559 X-GNU-PR-Package: emacs Original-Received: via spool by 72559-submit@debbugs.gnu.org id=B72559.172390491510453 (code B ref 72559); Sat, 17 Aug 2024 14:29:02 +0000 Original-Received: (at 72559) by debbugs.gnu.org; 17 Aug 2024 14:28:35 +0000 Original-Received: from localhost ([127.0.0.1]:54830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfKPy-0002iX-FW for submit@debbugs.gnu.org; Sat, 17 Aug 2024 10:28:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfKPw-0002iI-FY for 72559@debbugs.gnu.org; Sat, 17 Aug 2024 10:28:33 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sfKPE-0003oT-5V; Sat, 17 Aug 2024 10:27:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=9yyp6MWomaSAiH7oKfFb80iUP5kr8aHSOYG/VwlNS88=; b=IpgYYrbiEwp6 792xZba12R1WfhHwXwQ7/sEJcf0xM2Vy6tXMC88AR1Ki22+kAPZGl0mEJeJ6S0g052R8+2CVSrmXV EKX+fdN/UO6VLSG3m+dno2abbx7E7OPsmR9ibS6nNhxKgMAKBoBZQxt9ezDwSWkTomKijDf+WQDhl xXEK25kFYV75Li1VhELZ8EA+fuI9h8g9SnKSmUmGbF+U5WTeZUfWoQHAyR/VlPSObUS6YtFxJzv94 1QxaaW52f5lxLSJH2WRJLKZrw89tnIbzRkT0bmC+xyhl48lfB8rDHXPO9BikbfvU+UbKx8RFc9sMY VKwYwc+7mUKXC4v82aVbpQ==; In-Reply-To: (message from Stefan Monnier on Sat, 17 Aug 2024 10:07:59 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:290270 Archived-At: > From: Stefan Monnier > Cc: pipcet@protonmail.com, yantar92@posteo.net, 72559@debbugs.gnu.org > Date: Sat, 17 Aug 2024 10:07:59 -0400 > > > This seems to avoid errors, but I still see problems in the profile > > read from a file, which is displayed like this: > > > > Samples % Function > > 35 31% redisplay_internal (C function) > > 28 25% + command-execute > > 28 25% Automatic GC > > 8 7% + # > > 7 6% + ... > > 4 3% + # > > 2 1% + # > > > > Those "" thingies are actually written in the file as > > "#" strings, and I suspect that they should > > have been written as function objects, not as strings. > > I don't think we want to write them as function objects, because then > we'll again bump into the problem that some function objects contain > unprintable objects like buffers. But Emacs 29 does succeed there, at least in my testing, including when the profile shows byte-compiled functions. So how come Emacs 30 cannot? > Better would be to print the "#" strings > as-is instead of printing them as #. Again, Emacs 30 shows the functions called by such byte-compiled functions.