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, macOS avoiding signals Date: Sat, 04 Jan 2025 10:02:07 +0100 Message-ID: References: <799DDBC5-2C14-4476-B1E0-7BA2FE9E7901@toadstyle.org> <87msgdkt29.fsf@gmail.com> <86h66lnjrt.fsf@gnu.org> <868qrxnfrw.fsf@gnu.org> <87a5ccl2zx.fsf@gmail.com> <875xn0p3l1.fsf@protonmail.com> <86ldvwm190.fsf@gnu.org> <87cyh8nczh.fsf@protonmail.com> <867c7fncom.fsf@gnu.org> <87pll3ivzs.fsf@gmail.com> <868qrrf04z.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="35403"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: eller.helmut@gmail.com, pipcet@protonmail.com, spd@toadstyle.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 04 10:03:04 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 1tU03j-000917-69 for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Jan 2025 10:03:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU039-0006Nm-24; Sat, 04 Jan 2025 04:02:27 -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 1tU02v-0006Mu-PR for emacs-devel@gnu.org; Sat, 04 Jan 2025 04:02:14 -0500 Original-Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tU02u-0000rJ-9B; Sat, 04 Jan 2025 04:02:13 -0500 Original-Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-4368a293339so92936895e9.3; Sat, 04 Jan 2025 01:02:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735981330; x=1736586130; 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=jjn6nBxx6/nqyveYY5AdTks9IKduYCgFu1a2H/fb4jw=; b=JCzGZI854IsXR8ZmiTMnotnH8QynmYSLaNVw67ye6Uh2W0GG5d4kjn7cLRgEmRav4m XR9+HRc+kRSh07zOH4KiZhbkRpIPI0XadwGssO+Z87VA0DyvVRiS7Ax3Wa0lpAUoDcMj jly/tAWo6u6qOnesFMsHs6AJUiQCWA1etaw2dIQi7y97zbpU1w23Ni1/7qb1BLBKolCR +SrzhbB+KV2WMciczYfDplV8nVe3tzhyTFWRbQIbrC7ScC+PFxgHLW1MBpDBDsUai2CR 6ABzOISAIXhheiQj9fHpl399kdlqH31iPKXSfQXJO79ClWObK/NZ5UbLAPKvr2iXlNNf WoRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735981330; x=1736586130; 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=jjn6nBxx6/nqyveYY5AdTks9IKduYCgFu1a2H/fb4jw=; b=mVoUO18y/p+6fNawq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with SMTP id 5b1f17b1804b1-43668b93637mr423031405e9.29.1735981329628; Sat, 04 Jan 2025 01:02:09 -0800 (PST) Original-Received: from pro2 (p200300e0b73c9f00c50ae305bf989514.dip0.t-ipconnect.de. [2003:e0:b73c:9f00:c50a:e305:bf98:9514]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43656b3b287sm538279765e9.29.2025.01.04.01.02.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jan 2025 01:02:08 -0800 (PST) In-Reply-To: <868qrrf04z.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 Jan 2025 10:34:20 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=gerd.moellmann@gmail.com; helo=mail-wm1-x333.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:327658 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Cc: Eli Zaretskii , Pip Cet , >> spd@toadstyle.org, emacs-devel@gnu.org >> Date: Sat, 04 Jan 2025 09:02:20 +0100 >>=20 >> Another thought that crossed my mind. Not that I have an idea >> how to use that, but maybe someone else has? >>=20 >> With the existing arrangement, a count in the profiler log means time. >> It's count * sampling-interval since SIGPROFs arrive in fixed >> intervals, ignoring details. >>=20 >> With the new arrangement, the intervals between samples are generally >> not fixed length. Sampling is done when we get to it. Of course when >> we get to it often enough, we are approximating fixed intervals, but >> in general a count doesn't necessarily measure time, or only to a >> degree. >>=20 >> Can we use that somehow? > > Why does time matter? A profile shows the percentage of the samples > that we found ourselves in every function. Time is never of any > importance, AFAIU. That's why the frequency of SIGPROF does not > matter very much, except for very low percent values. IOW, the > frequency of SIGPROF can explain why we miss some functions, but > that's all. Well, when I read "42% so-and-so" in the profile result, I always read that as "42% of the time spent in so-and-so".