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 09:23:37 +0100 Message-ID: <87o70f84c6.fsf@gmail.com> References: <87frls9vxa.fsf@gmail.com> <877c739lbi.fsf@gmail.com> <86jzb3158i.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="38551"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org 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 09:24:20 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 1tWAJX-0009sK-5s for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Jan 2025 09:24:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tWAIz-0004CU-A1; Fri, 10 Jan 2025 03:23:45 -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 1tWAIw-0003vs-Uj for emacs-devel@gnu.org; Fri, 10 Jan 2025 03:23:43 -0500 Original-Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tWAIv-00005a-7D; Fri, 10 Jan 2025 03:23:42 -0500 Original-Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-3862d16b4f5so1081692f8f.0; Fri, 10 Jan 2025 00:23:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736497419; x=1737102219; 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=MnnUXin6Rr6e9zQ11P0Jj5kRA0RwLL+bT0EACTKzuqs=; b=LO1Z/UcJ7Cb3t0BTZLSdrEttcGLSvmXVgYMIfYZL36vl0vZdceaeD76OV9PNceaQjN kNCPjak3Awg6yKEEkUvQFQD5KaMNyOvNGTPX+4DVTX8omeAkpo9bHL02VDpqwNMED9Rw cl9zSNJ9F66x8aULiSERe+srpdUBm2rNjIp9/hI/KJ2u5D76jtMQYqWFjkr0xk+Hjm/E FZcz04JJadKRITEj74iRoHkSuleL+kLp0uJcQkNhWzmr8O6Du5TyBT19neF9ybfkVwyZ wHdu7esIYPkkw7gxaVO4IykbYoNXPa5OnXV22nithofw6DwI7s1STWXd3Zcji90f92aK dKMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736497419; x=1737102219; 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=MnnUXin6Rr6e9zQ11P0Jj5kRA0RwLL+bT0EACTKzuqs=; b=RXtoexu0JhMh/rMwkP7/bsR8KWGbI+DUqv78nuZ0R6lqsfBAlRUpKcM7u/gEJ3rH2h t9DnY6YiAcMPh5Cji6HNo5njm+//owZ2XSPAxsncy6d3PTpNjq65HerMeNqvIJ6DrVjD 1jiCWYeEdm2qOpwYPAgfDC/ae87IwgZT7zC5rBf718ignhEC7YtOwrkcWYuta1YHJvXK OGLLMUzCRRumabrCHhQEpwp6Tx0Nia77nRkmbg+NhZqyrbqK3LbjaoRliivdvqVNLuoA 1WJTQHikIZi0mcxDkBZ5/7FPdLOoJkh3458kZktfup6KVq63sVWW7NtfG9k1MsbwbEOJ dcjg== X-Forwarded-Encrypted: i=1; AJvYcCXKrQd1WE3eEPwRFrT/7J/pJnSww7ADGtK4S0NMzdEWI2wBBX42S/x0SY97ltjeg7fHLOwBnj6RnaY9Vg==@gnu.org X-Gm-Message-State: AOJu0Yz1C6rp20LgMspp5Ny02f8noXupHc+vG8DvNcJv4w29F0DlWBEj R+By1NYywoQuQYxJP43lDX9754cRaxcbpuarqXvYk1X3C4lTsLlnmXg1jQ== X-Gm-Gg: ASbGncs6nDXIU+Q89cVVemu2Q+FM+4MkuRAbduplhjiLSLNSMB/Btw1ndHYekeTe90E wyPY4gzb+pjE7fb+NSnJDplGpe7mMYpZz+IoIVc+FmPzNBjM78Xfmose+DRccfHAmdUOhebuYu4 JLT7Hauzq4MFOe8fxiRuOVlg4JqSoQFBQ2vb1cntfq6/4Cqdimrp1la6ieXByu3CQFRg1VnOmYZ sSgj2R2LsnJtAH49ZkFREDD8aKEbjQBZX1vFKEkesFpf/zi/eUtDA== X-Google-Smtp-Source: AGHT+IFiYvsfDMIefsgdR3d+Nizg6IDmywvAZsYaW4Ec90M6eKX5SuqDdVBPCZNPnEryrStVpTgbZA== X-Received: by 2002:a5d:588e:0:b0:386:4332:cc99 with SMTP id ffacd0b85a97d-38a8b0d61c6mr5582747f8f.17.1736497418804; Fri, 10 Jan 2025 00:23:38 -0800 (PST) Original-Received: from caladan ([89.107.106.84]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-436e2e89ca5sm78955475e9.29.2025.01.10.00.23.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jan 2025 00:23:38 -0800 (PST) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llmann=22'?= =?utf-8?Q?s?= message of "Fri, 10 Jan 2025 09:05:14 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=eller.helmut@gmail.com; helo=mail-wr1-x433.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:327832 Archived-At: On Fri, Jan 10 2025, Gerd M=C3=B6llmann wrote: > Eli Zaretskii writes: >> 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. I think drrace is also available for Windows. >> In addition, I feel that this is too low-level for our purposes. We >> need something more akin to trace-redisplay. > > I must say upfront that I've only read about dtrace for a couple hours > and asked Gemini a few questions. From that, my understanding is that an > application can generate its own application-specific events that carry > additional data, including strings, int, floats, and so on, structs (not > sure if I believe Gemini in that case, but who knows). (Helmut, please > correct me if that's wrong.) Applications can define "static trace points". In practice, that means the application has macro calls like DTRACE_PROBE(name, arg1, arg2..) in the source code at interesting places. Obviously, the same macro could be configured to work with dtrace or systemtap or something else. An advantage of tools like dtrace and systemtap is that they can patch code: static trace points are nop instructions, until activated. So very cheap, if not used. Ironically, that's almost impossible to do by the application itself. Static trace points are useful, but with dtrace/systemtap it's also possible to set trace points by line number, as in gdb. Helmut