From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eval Exec Newsgroups: gmane.emacs.devel Subject: Re: How to let `profiler-report` show more info for `redisplay_internal`? Date: Mon, 2 Sep 2024 20:25:28 +0800 Message-ID: References: <767540f2-aad1-428a-809b-e21dc2fef34e@gmail.com> <86seui8e8p.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1899"; 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 Sep 02 14:33:32 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 1sl6FQ-0000KW-CE for ged-emacs-devel@m.gmane-mx.org; Mon, 02 Sep 2024 14:33:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sl6Ew-0005do-EQ; Mon, 02 Sep 2024 08:33:03 -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 1sl67s-0002q2-0f for emacs-devel@gnu.org; Mon, 02 Sep 2024 08:25:44 -0400 Original-Received: from mail-oo1-xc43.google.com ([2607:f8b0:4864:20::c43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sl67q-0007yq-G1; Mon, 02 Sep 2024 08:25:43 -0400 Original-Received: by mail-oo1-xc43.google.com with SMTP id 006d021491bc7-5dcd8403656so3022122eaf.1; Mon, 02 Sep 2024 05:25:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725279940; x=1725884740; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=LYUQJzmCm+8OwEw/nwbJT9DsfAywfdPbU6l3pf+j0lQ=; b=BtdxNtpwb11uSKlAsNxJyA6ykV4R8dHn5lW0xnwzWyvTlqB7Ii9Ahgv6c3yr/0gK9z 47lLK6hf7p7FM2oTKWmzwt8UAUr/Ws3tVEvFkaGuFGtDRqiYkRbz3EwwrtgB/lr7RRxE IjVVvGzhxQflG8THuocH0CvNZgpJdaTOHonbwRy9O0X3JZhuJdUu2RQgJy8L141yJM8o w5DXzspw1UzYe3GKISr33xv6RjHHt9YOPdRJ9lkdnC19cqVbXBYjD1FfGUA7kgqtPVUS vMDBqQlIKyOfAv+EgmnMC6bX0iineLMbnrFFN1XzCnqvpHBJKssyiRfbh3LJmHzA2Qgl qnEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725279940; x=1725884740; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LYUQJzmCm+8OwEw/nwbJT9DsfAywfdPbU6l3pf+j0lQ=; b=dlcVVogc+Og2xIaKEnqz9EjWmK/W7/bkE4GDntkIQ1ONt9XTrQu8cysTruYJ4WNtib EpN/lhNjb3k22tcF+owgOaaonf28r0QHF4NN6aKoKsLNeYjcyVdChhaROopYm329W7FN FuRNRyEMCqiu+He84fPcZRkwC/KBWSE1x1ppAOQ7plbz2avjRX09yyodfNTOMWbIXlTp 4RPNa2kqo8ToChodA6ZvQdGFwZgoKeOEbjMQYFWXhcjtURQb8cT/s6adh+WoMknEk4bh gBMLaZNxLtjdQquNw8j65ZaG+kQcR7sGloib/rO/wMjoIcLxJ2+2MjpwzYiaZ5StfFoT 5xcg== X-Gm-Message-State: AOJu0YzXwPipXBjGg9s6AKbgz/4L4m988yIbUUoV+fikOvqQRBYl22sb SfKGJxfdc5azoymrNXryJ5rbc7xCSWlsHZQB7cbHIKV9HOU11b/ghNQsqO6wy4xyd0Tect6fETt KEWZ46lfwGl5H9Lt90d29nBF8XwSl4RA1VLQ= X-Google-Smtp-Source: AGHT+IHJWtueZG9wlBAAxPiLp5Yv3Rb2bj3/bbsyJ85QjEdhQlR9TQ8Cf1o5pbg/kDndZTy6+imBw2jq5vdS1kx2TIM= X-Received: by 2002:a05:6870:568d:b0:278:25d:d473 with SMTP id 586e51a60fabf-278025e532amr1402332fac.1.1725279939554; Mon, 02 Sep 2024 05:25:39 -0700 (PDT) In-Reply-To: <86seui8e8p.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::c43; envelope-from=execvy@gmail.com; helo=mail-oo1-xc43.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 02 Sep 2024 08:32:44 -0400 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:323284 Archived-At: Thank you! On Mon, Sep 2, 2024 at 7:52=E2=80=AFPM Eli Zaretskii wrote: > > > 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 th= e > > sum of the child items below `redisplay_internal` is less than 2%. Wher= e > > 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.