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 17:34:12 +0000 Message-ID: References: <83eejjrsg1.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="11832"; 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 18:34:52 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 1krP5A-0002xT-AG for ged-emacs-devel@m.gmane-mx.org; Mon, 21 Dec 2020 18:34:52 +0100 Original-Received: from localhost ([::1]:59938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krP59-00013y-BD for ged-emacs-devel@m.gmane-mx.org; Mon, 21 Dec 2020 12:34:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krP4b-0000cB-9b for emacs-devel@gnu.org; Mon, 21 Dec 2020 12:34:17 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:60015 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.90_1) (envelope-from ) id 1krP4Z-0006gM-4d for emacs-devel@gnu.org; Mon, 21 Dec 2020 12:34:17 -0500 Original-Received: (qmail 13372 invoked by uid 3782); 21 Dec 2020 17:34:13 -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 18:34:12 +0100 Original-Received: (qmail 32405 invoked by uid 1000); 21 Dec 2020 17:34:12 -0000 Content-Disposition: inline In-Reply-To: <83eejjrsg1.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:261397 Archived-At: Hello, Eli. On Mon, Dec 21, 2020 at 19:15:42 +0200, Eli Zaretskii wrote: > > Date: Mon, 21 Dec 2020 16:32:21 +0000 > > From: Alan Mackenzie > > The variable which controls the widths of the comment name, number of > > samples, and percentage columns is profiler-report-cpu-line-format. > > It's default value is: > > ((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.) > in that case the numbers are much larger in magnitude. So perhaps we > should use 2 different values for that variable (and I wouldn't worry > about the one used for "memory" profile, since it shouldn't be used on > any modern platform). There's already a separate variable for the memory profile, profiler-report-memory-line-format. I've never used the memory profile, so I don't know if profiler-report-memory-line-format's value is similarly annoying. I suspect not. -- Alan Mackenzie (Nuremberg, Germany).