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.devel Subject: Re: How to let `profiler-report` show more info for `redisplay_internal`? Date: Mon, 02 Sep 2024 14:52:06 +0300 Message-ID: <86seui8e8p.fsf@gnu.org> References: <767540f2-aad1-428a-809b-e21dc2fef34e@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29482"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eval EXEC Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 02 13:52:48 2024 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 1sl5bz-0007Tr-7W for ged-emacs-devel@m.gmane-mx.org; Mon, 02 Sep 2024 13:52:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sl5bO-0008Bm-N3; Mon, 02 Sep 2024 07:52:10 -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 1sl5bM-0008BN-8s for emacs-devel@gnu.org; Mon, 02 Sep 2024 07:52:08 -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 1sl5bM-0002xW-01; Mon, 02 Sep 2024 07:52:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=9DWBX6aDAfovNmfGxcSz7U8v2nJlUFPpMne8BPxhk18=; b=gZlAZAg+QwjPkjMoc4Za ZAoLSM/gZxH81y1sp04yb6im+cDUehWteAF/EgOgeg5/877cdsKLQxXBJHVHmIT6qcE8E9qEOdLTq QrLeI7fqM3KrE+TEwOwwsCh74CbBwGnYYn4UbnI6o/T73K6CTaO7lzBHXPtgbGaEpQZN0ABDbkN4v SZzSZWQZscqiOf0GY9IAMcS1fTiFNG4a+1lbo9FGGF0OnPTjrw6hjKqyL8jPC32+78bzQTYj3/WKu qHrjT816CZsehyZeDNiyIvCXxm0ibj6E8YkK0Yn8un2KdU1ZGUAMAOaoqEjBPkBdKqtN0eQJ1j+Ae xX2l+S+pWGxHjg==; In-Reply-To: <767540f2-aad1-428a-809b-e21dc2fef34e@gmail.com> (message from Eval EXEC on Mon, 2 Sep 2024 11:02:50 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323281 Archived-At: > Date: Mon, 2 Sep 2024 11:02:50 +0800 > From: Eval EXEC > >          103  94% - redisplay_internal (C function) >            3   2%  - eval >            2   1%   - minions--prominent-modes >            2   1%    - cl-remove-if-not >            2   1%     - cl-remove >            1   0%        cl-ldiff >            1   0%   - mode--line-format-right-align >            1   0%    - eval >            1   0%     - minions--prominent-modes >            1   0%      - cl-remove-if-not >            1   0%         cl-remove >            6   5% - timer-event-handler >            6   5%  - apply >            6   5%   - # F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_23> >            6   5%      jit-lock-context-fontify >            0   0%   ... > ``` > > > I noticed that `redisplay_internal` is consuming 94% of the CPU, but the > sum of the child items below `redisplay_internal` is less than 2%. Where > is the remaining 92% going? I'd like to see a more detailed CPU profile > for `redisplay_internal`. > > Is it possible to get a detailed CPU profile for `redisplay_internal`? No, you cannot, because redisplay_internal is written in C, and profiler.el can only analyze profiles of Lisp code. You need to use a tool like perf for profiling C code. Sorry.