From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: igc statistics display Date: Fri, 10 Jan 2025 08:31:29 +0100 Message-ID: <877c739lbi.fsf@gmail.com> References: <87frls9vxa.fsf@gmail.com> 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="1759"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Emacs Devel To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 10 08:32:29 2025 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 1tW9VN-0000NP-65 for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Jan 2025 08:32:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tW9Uc-0006LC-UT; Fri, 10 Jan 2025 02:31:42 -0500 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 1tW9UV-0006Kf-1n for emacs-devel@gnu.org; Fri, 10 Jan 2025 02:31:36 -0500 Original-Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tW9UT-0002dQ-7E for emacs-devel@gnu.org; Fri, 10 Jan 2025 02:31:34 -0500 Original-Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-385d7f19f20so876761f8f.1 for ; Thu, 09 Jan 2025 23:31:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736494290; x=1737099090; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+iaJvO1zaEmEV0vK0AbtWvzCRdfC4eXe/YJf/9IM0n8=; b=QBKn8CPmmD4908rIhf3AguMFmmW9CWchXZj09GuTxCu5tUaW935HCNfFLawvwc4Ntx bKIsGEcC4IaGWt+dPHiWI43/T30EWfjqzVmv8Z/I3VOS75OdGAAQwwRf6/dgLzcJb4dC YVZqZ604xkL27/RvS+LUPaPFI3xbXwXl4a8M3GHoJ9XeJE/LO05bRo3+i6JOmAictWWT xhfqGSyWPADx5tKmlcHJg2a5Wj9yWYFuxenxQeqfvDQcDFrcoOgZRyusoNUOc48d5a1d 9JHeL7Np3HFrOhgbJ51R+aD/hUKZ/cah7PLjsbE9oVU/VYyljtM+7Wonznqc22V2K4Kh TKJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736494290; x=1737099090; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=+iaJvO1zaEmEV0vK0AbtWvzCRdfC4eXe/YJf/9IM0n8=; b=ChWLizfW+Zg0xdgjAbFALaPszJMnk+oAoZ2PJR0IjGfaAS1vj5IopmzoHYQLGKOXHf NUFN2fn7S25cqQfXWHIU2HDC3DGwEwBmg+1GZ548baNPcK8WQ+NZnddIyKkGBcEDcZ0e eIG9qFKaBl4F6bIkp4ubW3uLjxGwG/NMREWwgBCN/T/fVqzvSjy0/BxijyHp4L24dOsX cWv8ZLi97QG6DMGR7wS87MI0kRPjRYZnSJXJuSgoxK4FAjYIbHpbtH62gbvnF519ps3r PiA0tRJqFts+CnmsYAZJCtIrn5FLgpxl4EPcWCC4hBFa3I3ni4p8rTKst80cG0DVsv9X gmHQ== X-Gm-Message-State: AOJu0YxHsHF7Kux7tzPr6rm5D4Hyp8vFDgwggk0mGY1F1IMtgEPO6uJo h7T/+ugxwevKyzUYiIBGufCUrCj/upfpfKgFSYkSeXIixzC6XZi8oI0PAQ== X-Gm-Gg: ASbGnctR73ri6rQXLauL5f1XvC1M29E4KPDZIkthGkGr7gzMA5ZT3gp/BrX2j80plm2 2VIe/uCvD9SLYtPiZsFMbiT4PY0JdyQ8fPKstTrJuuOgyfA5zfUghHB0K5JV0hlM9NDc9E/QfMr qCvGalTEvYwp5VrlUFUVNCk6nmsV2qopKCfa3U8IvoCQ4dRIUFQAcUzgpZKR7GEBxjk/gJ1I5Fn zNDkQzMkCZ8Qi6unFbELuFXXGrdlxbKHjSG5yAk/JYvRF2Qoy0PwA== X-Google-Smtp-Source: AGHT+IHoXkPu2jFSN67/kMbdWL0Dirf+38e+qRkm9DH21U+SHFOp/ZADa0EqSd3DiuNSf5klp468Kg== X-Received: by 2002:a5d:5887:0:b0:38a:673b:3738 with SMTP id ffacd0b85a97d-38a87312dd3mr7821469f8f.33.1736494290024; Thu, 09 Jan 2025 23:31:30 -0800 (PST) Original-Received: from caladan ([89.107.106.84]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a8e4b8180sm3758323f8f.76.2025.01.09.23.31.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2025 23:31:29 -0800 (PST) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llmann=22'?= =?utf-8?Q?s?= message of "Fri, 10 Jan 2025 07:26:55 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=eller.helmut@gmail.com; helo=mail-wr1-x42c.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 autolearn=ham autolearn_force=no X-Spam_action: no action 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:327829 Archived-At: On Fri, Jan 10 2025, Gerd M=C3=B6llmann wrote: > I wonder if something like that wouldn't be interesting for Emacs also > beyond monitoring GC activity. There are many potentially interesting events - begin/end of a command - begin/end of a redisplay - cache misses (regexp cache, charpos cache ..) - begin/end of interval rebalancing? - call/return of Lisp functions It's a bit annyoing that drace/systemtap needs special permissions. In theory, systemtap has a "dyninst runtime" that uses ptrace instead of uprobes and hence would not need special permissions (at least not more than gdb). In practice, the dyninst runtime doesn't seem to work yet: it exist with a segfault. It would also be useful to have some helper functions (called tapsets in systemtap) to write dtrace/systemtap scripts, e.g. accessing symbol-name etc. Helmut