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: igc statistics display Date: Fri, 10 Jan 2025 09:46:05 +0200 Message-ID: <86jzb3158i.fsf@gnu.org> References: <87frls9vxa.fsf@gmail.com> <877c739lbi.fsf@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="21386"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 10 08:47:07 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 1tW9jW-0005Rd-SB for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Jan 2025 08:47:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tW9if-0001Y9-0T; Fri, 10 Jan 2025 02:46:13 -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 1tW9ic-0001Xq-NO for emacs-devel@gnu.org; Fri, 10 Jan 2025 02:46:10 -0500 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 1tW9ib-0003rR-OY; Fri, 10 Jan 2025 02:46:09 -0500 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=+KE+ZCXXVcTG5qcS/BGtlbVwjmZBpLmuDi0XYiMjVsc=; b=aoNbeFEM/gvzXsmLrtKs QyrwIJA6zCxwU7bhqKOtAaub2iKYaTOdapJqvtG8LLoozYjXUzAXN9V4OiMKPixFOhEtI21gLD/0X c+J4ASZuB5fEe7mR5G7qH4F8AKXokI9Tq+y6kY4EGUZz9UTeN07KC/PWyXQUfB/t9F9cLVigwPPgp 7NYs6caGKHXcLoNksdhXPg5+7RwsZIRL4xSFVDvKUv77Zk4lOoJX5nr9ov5CAR2I6ynY22q/cGAR8 nUAgc9Ieepz5VLrfNrxdZwlGdyrhRtLmjHSaM7HMJit9NnLGdUemawdqD43cNl0zUJ388vtqq5LK6 YJr1hLcU3tb6uw==; In-Reply-To: <877c739lbi.fsf@gmail.com> (message from Helmut Eller on Fri, 10 Jan 2025 08:31:29 +0100) 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:327830 Archived-At: > From: Helmut Eller > Cc: Emacs Devel > Date: Fri, 10 Jan 2025 08:31:29 +0100 > > On Fri, Jan 10 2025, Gerd Möllmann 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. SystemTap is not the ideal means for such a facility. Its only significant advantage is that it's supported by GDB. But its huge disadvantage is that it's a Linux-only facility. In addition, I feel that this is too low-level for our purposes. We need something more akin to trace-redisplay.