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: How to let `profiler-report` show more info for `redisplay_internal`? Date: Mon, 2 Sep 2024 11:02:50 +0800 Message-ID: <767540f2-aad1-428a-809b-e21dc2fef34e@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34520"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 02 12:55:37 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 1sl4ie-0008sj-Sc for ged-emacs-devel@m.gmane-mx.org; Mon, 02 Sep 2024 12:55:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sl4ht-0000Fj-HO; Mon, 02 Sep 2024 06:54:49 -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 1skxLG-0005RC-Nb for emacs-devel@gnu.org; Sun, 01 Sep 2024 23:02:58 -0400 Original-Received: from mail-pj1-x1041.google.com ([2607:f8b0:4864:20::1041]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1skxLF-0003UE-6N for emacs-devel@gnu.org; Sun, 01 Sep 2024 23:02:58 -0400 Original-Received: by mail-pj1-x1041.google.com with SMTP id 98e67ed59e1d1-2d8b679d7f2so671657a91.1 for ; Sun, 01 Sep 2024 20:02:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725246175; x=1725850975; darn=gnu.org; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=jMw4f2SeTMP2nuwllL1pR4sfFmRrnYLI6Vzxdy+X2bk=; b=JX0xeaIommnnxbK03MBsuUc+uzL7j7r4XGIxu5dvsTyRPw2VLG7jSergIfnsnw3jM9 OYSpMntOcNSXFfCtMmZiaJ4IJ2pwu0B/RMnGtON91nuzqSLybo6hSpt16hxp/NJUJZpe dJnssEEzDXUgelXJtcLYHvUjXso2cA+EVd10aSqEbWA+fQnzKkPGGZx206zksNONxhis Cyy8MO90YvW5t5VLQEp5bUUNigaGlHY0fQL61eBlcAaea/OtHIQRClcV4BOEYLaCWZK1 5nlb8IYlTscs/NsWm1ykx9UucRnwZ3qRgESjLW4lNq78TSd9AYEWO3hFAmszLZgKQUs3 HmIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725246175; x=1725850975; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=jMw4f2SeTMP2nuwllL1pR4sfFmRrnYLI6Vzxdy+X2bk=; b=i90R9NlfV5mdDDjvaRb08K1p01rila4lqZdbIIPKZAU62Jo7yA8kYvEJq7xDuKhKbJ K6GH28nIKyYbDqW6x42UY0dcQ0yZ/DO0IdcNlNLL+m9x9bGeKg2eG6CFSDM/nJF6EBV9 adH9+5FuJVKNhdh8R563RPZ75t6UvqcOizk6scMhtFvYbOXnQO+rT0naRaRoCEpmXwhi SVAjPoBHZdQW8P63wocwZL8Cfk4Npo8yBDn5VOc6OcLNONgiwCs850lHLWsowaHJbCWp MgstCgKU+i3nR4MZbO/D5eD/zEhOUWJl/LVM/rg94XAfnP3l/7H6dEpe1k/2PTZ+C9X4 5+MQ== X-Gm-Message-State: AOJu0YzLMLir0Phmi/Z+22naXZAJAF2VBWlmYoQiLpsrV5QZYeTqaDju /NldVVX1EN93rpNjLGLf4XAfP/RUUcGVdQFmEliyT9AKpdgxuaZFos0G1SGVdcY1DA== X-Google-Smtp-Source: AGHT+IGNFM0MPpLQ6x9PWkTBUNTNEniLkudmnc2GJYh+Jo0bXBssjsSlq/5R63ZVS73ibq0aGWsZAQ== X-Received: by 2002:a17:90b:17cd:b0:2cb:5678:7a1c with SMTP id 98e67ed59e1d1-2d8561a38e1mr14599114a91.18.1725246175040; Sun, 01 Sep 2024 20:02:55 -0700 (PDT) Original-Received: from [28.0.0.1] (144.34.182.14.16clouds.com. [144.34.182.14]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d85afb2d88sm7903892a91.0.2024.09.01.20.02.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Sep 2024 20:02:54 -0700 (PDT) Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::1041; envelope-from=execvy@gmail.com; helo=mail-pj1-x1041.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 06:54:46 -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:323274 Archived-At: Hello, I started Emacs, in scratch buffer, I execute `profiler-start`, move around, then `profiler-report`. It show me: ```          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%   - #            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`?