From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: igc statistics display Date: Fri, 10 Jan 2025 10:04:27 +0100 Message-ID: References: <87frls9vxa.fsf@gmail.com> <877c739lbi.fsf@gmail.com> <86jzb3158i.fsf@gnu.org> <87o70f84c6.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="1885"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 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 10:05:01 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 1tWAwv-0000GO-I7 for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Jan 2025 10:05:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tWAwV-0001bI-SI; Fri, 10 Jan 2025 04:04:35 -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 1tWAwU-0001aq-8t for emacs-devel@gnu.org; Fri, 10 Jan 2025 04:04:34 -0500 Original-Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tWAwS-0005NS-PJ; Fri, 10 Jan 2025 04:04:34 -0500 Original-Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4364a37a1d7so19369275e9.3; Fri, 10 Jan 2025 01:04:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736499870; x=1737104670; 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=jWpgDcmzKcejEjD0M88fF67vGha2IoCg6bjW1UKCinI=; b=HgLwKOb6A3EdMJArMZk6WMPrJVb73jm2M6IKXU4b1pRHESeJUpM9PB3pZaawQtYDSm gfs3orBVvzMXt8YFWIuwU02FW7UbJfe6oO1mA70vDDP87vB5WIBSNDhAeBj07xSELkfJ EKhg2WVfmWnBoVskfuZRRcx8PfKkOr7Uoi8KHs0Qo/4aX66513ODSGp/psothDjqY3dC tft/9SQaNEO6GaNcx2Qa3bgg9jfyLs7EBnQg2R4AE2npiZYDh1srBWWuh35G3V8M41pJ D9AwLO35sTVFWlmPEbyRnhjNzT7z9aHOoZZHIyTDJz96LqdjjIQc4wkoM4jNOJCrsi5R jkjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736499870; x=1737104670; 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=jWpgDcmzKcejEjD0M88fF67vGha2IoCg6bjW1UKCinI=; b=Z1qSiPYZXc7JJ4jlI4S/DEs1lV5aFaTfX/uphTyeuQM4FKUkDKj6kAKh8/8SeCI4dy gpE2qTaxGHBig+VNOPVnm08s6fUtkQq0nkTPcFdqrdzn9Q/IIqBsXQG9V1mPTUAjlqnF UzCRbFARwlMFYYmm7O1WfolMix/1eALEkLFrFXsaUG2TWx9nAPwnbrDbvW4v8wbTmHJh hgB4vEXpJ0YLIUVgmKXk8HM6OxYTGzWlxxSnALa9wL6zRKiPg74IcnbzBLUGYPy0ZIXj mVSi6HHUjNY0eYDPOTg8pwZXQ9lgKM6JJCGH9mcsjQwnZGayQT0T7dmAjtHYN1E/BzAe Xz6Q== X-Forwarded-Encrypted: i=1; AJvYcCVouDoZ/Hnxbxy4O9Eco2METY8MD48pEkfufxRnZw++Cc9Aszh6yzbxgLX4jQaSLOM+LHLVwx7uAQLzFQ==@gnu.org X-Gm-Message-State: AOJu0YzottgVWSKhIMQimq5CVBjOu4gSGAYI/9PqTYHTUqazHe4TmRUy 8/9Vsdekwp1TYgDGAII6Fl/TqW/5tySOQcMF3SWtSbV4UmtY2chZS912Zg== X-Gm-Gg: ASbGncvURrjVRyCt8lPmeOZNhpM/I3NGBpoMR9TapkVHq2KM7e4vDY4pAkYZ0I2813F sWE02ZG9bG5woHNQYfghEnag1fEPYHQfAzTWJ39n/Xw86xqww9kxcnQ6HM223eFFAGxiEOFKXJw 3HI7hTgR/YP3BN3rPNEacURsDgqvVmJbKkioVmDxYw4NWt8Oe4KkzUTOYLbKERkErks/JGxlLcV Lsll4SnzU0x6CClwDI0ovSTLk/qgP+6CE++3kjAA1n8bTI3iO3SrUPZOokUhA7TTX8eKyO1lIqb QAYGiVBbL0frg57aVM5W8RttaRC2CcUvynwMoi3mkDx263b+gJcvZkyqGajs3TzGFw== X-Google-Smtp-Source: AGHT+IHhy4LOC3b4O+wlNM+p9uXRRGOiC0iox8mZ4XcJT1sGSFMVvEFrCbHdVRbTy8n38TnmMpr4tw== X-Received: by 2002:a05:600c:3ca4:b0:434:a10f:9b with SMTP id 5b1f17b1804b1-436e26ab2a2mr99279775e9.14.1736499869429; Fri, 10 Jan 2025 01:04:29 -0800 (PST) Original-Received: from pro2 (p200300e0b703ad00d49c34c25e204681.dip0.t-ipconnect.de. [2003:e0:b703:ad00:d49c:34c2:5e20:4681]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-436e9d26a7bsm47685585e9.0.2025.01.10.01.04.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jan 2025 01:04:28 -0800 (PST) In-Reply-To: <87o70f84c6.fsf@gmail.com> (Helmut Eller's message of "Fri, 10 Jan 2025 09:23:37 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=gerd.moellmann@gmail.com; helo=mail-wm1-x32e.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:327836 Archived-At: Helmut Eller writes: > 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 Thanks, very interesginb!