From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: A tip: how to display longer function names in profiler-report Date: Mon, 21 Dec 2020 18:52:33 +0000 Message-ID: References: <83eejjrsg1.fsf@gnu.org> <837dpbrptb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9513"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 21 19:53:17 2020 Return-path: Envelope-to: ged-emacs-devel@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 1krQJ3-0002Nr-3l for ged-emacs-devel@m.gmane-mx.org; Mon, 21 Dec 2020 19:53:17 +0100 Original-Received: from localhost ([::1]:39412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krQJ1-0006xb-LM for ged-emacs-devel@m.gmane-mx.org; Mon, 21 Dec 2020 13:53:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krQIQ-0006Wu-Fl for emacs-devel@gnu.org; Mon, 21 Dec 2020 13:52:38 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:62887 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.90_1) (envelope-from ) id 1krQIO-0001pe-DE for emacs-devel@gnu.org; Mon, 21 Dec 2020 13:52:38 -0500 Original-Received: (qmail 57553 invoked by uid 3782); 21 Dec 2020 18:52:34 -0000 Original-Received: from acm.muc.de (p4fe15b47.dip0.t-ipconnect.de [79.225.91.71]) by localhost.muc.de (tmda-ofmipd) with ESMTP; Mon, 21 Dec 2020 19:52:33 +0100 Original-Received: (qmail 32755 invoked by uid 1000); 21 Dec 2020 18:52:33 -0000 Content-Disposition: inline In-Reply-To: <837dpbrptb.fsf@gnu.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.1; envelope-from=acm@muc.de; helo=mail.muc.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:261418 Archived-At: Hello, Eli. On Mon, Dec 21, 2020 at 20:12:32 +0200, Eli Zaretskii wrote: > > Date: Mon, 21 Dec 2020 17:34:12 +0000 > > Cc: emacs-devel@gnu.org > > From: Alan Mackenzie > > > > ((50 left) (24 right > > > > ((19 right) (5 right)))) > > > > , which codes column sizes of 50, 19, and 5. The 5 (for percentage) is > > > > OK. 50 (defun name) is too small. 19 (number of samples) is too big - > > > > that is broad enough to count up to 10^16 seconds, of the order of the > > > > age of the universe. > > > Isn't it also used for the "memory" profile? > > No, it's not. (See below.) > Then how about changing the value to be better suited to the actual > width of the fields? E.g., just use the value you came up with? Are > there any downsides? The values I am trying out give a width of 84 characters. That would be intolerable for somebody on an 80 char. wide window. It seems we either want another configurable option, or Stefan K.'s idea of using tabulated-column-mode, which would allow the column widths to be adjusted dynamically. But even in the latter case, we'd probably still want a config option for the initial column widths. -- Alan Mackenzie (Nuremberg, Germany).