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 07:26:55 +0100 Message-ID: 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="14441"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Emacs Devel To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 10 07:27:58 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 1tW8Uw-0003aY-LE for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Jan 2025 07:27:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tW8U2-0001eh-Vq; Fri, 10 Jan 2025 01:27:03 -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 1tW8U1-0001eU-Nq for emacs-devel@gnu.org; Fri, 10 Jan 2025 01:27:01 -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 1tW8U0-0001cE-14 for emacs-devel@gnu.org; Fri, 10 Jan 2025 01:27:01 -0500 Original-Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-3862d6d5765so970568f8f.3 for ; Thu, 09 Jan 2025 22:26:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736490417; x=1737095217; 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=3To0pTXGvaIM0XbhOgv1s+B4K2wW9Axt8LXwmJNazqs=; b=E3geNI2hdBXzxF6o5bkXJM2UXBpbco6PkY2NZXoinFQ5Py1XMiwuCbM+MCx971TWDE OY+kCigeM6RhHlwD7Etn3iEcZG2Actk5fwitJn42K5EsoTBua24C42gudjOhBj5XxX2N N+43Krq2oWhigHwl8XwdMWajP1+L3DR0QrJqa3M7WUAjWWdhZhiv/jIR1VeOUYaD8BYP il08HDzr9j1Jd7cpOHU6BPzbQc0dy66Vv82Pys8IdS/VD12AdGpmD96EFG45TyQjb1lL IQUTri/jOz+Psn/5A3hOWstb+kTF9DNfIkUEutEBHR6LM2fYHMHO9ibJRqoVEJdB7x8j kdew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736490417; x=1737095217; 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=3To0pTXGvaIM0XbhOgv1s+B4K2wW9Axt8LXwmJNazqs=; b=MbiVv3aKNMPti3c/3MvL0aGG7kWJ+u+uL/+VhpXqTCq80IGQiSTiSxlwLbkGrGTgst dYRafDJT7P8XCmOxI0rIR9dMFUWNbfKdpAXxITlLCkqcnd1xun+MXn5ddbc6mT9WHrCO BQmfkc+63Y+zzMPuzkiWSHIih2Rq4J18XeC3S3UEP0CmqTDSonMizy1OtcaraB0EIVa8 wwqueayvGvGNmaWs/A8DJKbsABEb0WvuzEq9mLNFtlWzfiGuHsnLjiZ0J5EJ/tUqkuAq aeBeVlPLnR9P2IiAbNUkCjVszApygGAlH4i5zTuy1XjE6Xy/Mgm2r7GL6wkc+UQzlrpA wl3w== X-Gm-Message-State: AOJu0Yyr1Ni/Q1spz9Vm+MmYks7Z9NUFdIl4DtXsVhvwF+KnHR9+/zkD I+wkyurgWX0VRXKNXJ+M5sWSQ1fidQCg6ZdiFG3KPoCkBAeBv14pRyjp8g== X-Gm-Gg: ASbGncsW7kUg9e+aJGFFrlCywP/NfK7Ccueb+Yt5bASXyYOCuPvjkBDbXAsIi2fdTUb OV86i46CXXet10+aDiA74kznnSafIAo69CDsiC9iUK5wrc0N11fA8UU+BMH5fwvm+TwxE+rpaMk G1rQpfp+izvGoAk1BFlR4GZMU99fC754NW0N1PJxNVi7lGE3hP0JjHcYJiYwPyRO8ItyHmTJ182 WBBMMLUugWQ00MStokXFJZe/0Na2N0fvUiOTFzvUQunp3sDsizMS7JfYzXSsxxvc9KgMOpGpNDV Q3mXWtwIcXvB5xpsDTF6Ibq3OM9KSFLq76mc8nESBcaA6vaehBjU347R2S+SbTGIZQ== X-Google-Smtp-Source: AGHT+IHOfP4pM1Z5nYnZPwk6/x1MR3IpDyVdwk/tzulBVqpp5WxtfS5J/MDWL+TAhk1yuGvXhd6aTA== X-Received: by 2002:a5d:6c68:0:b0:385:fd07:85f8 with SMTP id ffacd0b85a97d-38a872ebfbdmr7229183f8f.29.1736490417392; Thu, 09 Jan 2025 22:26:57 -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 ffacd0b85a97d-38a8e4b8214sm3610696f8f.78.2025.01.09.22.26.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2025 22:26:56 -0800 (PST) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llmann=22'?= =?utf-8?Q?s?= message of "Thu, 09 Jan 2025 11:12:10 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=gerd.moellmann@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:327826 Archived-At: Gerd M=C3=B6llmann writes: > Helmut Eller writes: > >> On Thu, Jan 09 2025, Gerd M=C3=B6llmann wrote: >> >>> I thought someone might have a similar use-case, and could give advice >>> what to use for something like that, preferably a small implementation >>> resistance, of course. Or, might be interesting helping, which would of >>> course be even better, because I'm a bit out of my comfort zone here. >> >> I'm currently learning a bit to use systemtap. It seems that systemtap >> is similar to dtrace, which I think is available for macOS. Maybe you >> could try that. Unfortunately, systemtap seems to be targeted more at >> kernel code than at user space code. >> >> I mostly follow the advice from here: >> https://www.brendangregg.com/blog/2015-07-08/choosing-a-linux-tracer.html >> >> Helmut > > That's an interesting thought! Maybe one could generate perf events, or > what they are called. don't remember much about dtrace. And I would have > to check what macOS allows one to do without disabling security measures > which itself would require a reboot in recovery mode. Very interesting! > > And one would of course need some nice interface for displaying events. > > Thanks! BTW, found this https://docs.python.org/3/howto/instrumentation.html which basically says that Python can be built with Dtrace support that one can use to monitor Python processes. I wonder if something like that wouldn't be interesting for Emacs also beyond monitoring GC activity.