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, macOS avoiding signals Date: Sat, 04 Jan 2025 10:34:20 +0200 Message-ID: <868qrrf04z.fsf@gnu.org> 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> 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="20287"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eller.helmut@gmail.com, pipcet@protonmail.com, spd@toadstyle.org, 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 Sat Jan 04 09:34:41 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 1tTzcG-00058s-JU for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Jan 2025 09:34:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTzc0-00018K-Hv; Sat, 04 Jan 2025 03:34:24 -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 1tTzbz-00017D-An for emacs-devel@gnu.org; Sat, 04 Jan 2025 03:34:23 -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 1tTzby-00068X-Tu; Sat, 04 Jan 2025 03:34:22 -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=aKbrdFl/vTcTXzyctnxydz8X6eF4h+7HPh5FPJPHZlI=; b=XfggZHw7pXOEP1QO7WL+ w+yEjfFZD5m16HxdIvxCCipa5YhVzcF0UUvPvE6W/Ft4ep1lV3B1q3Vu0nL6PjbbBHVm5deF2duw5 smj1gnYzKlF6qPL5R0gs3YhM4xk+upUvy66+6UwIgFYBHVI8Ax7zQseo5CAiKT+qpc5VtDESMcxk0 fTBQYT89QXKF4EhcrtWTQ8+FDVPd2C+3qk8fvjZwptRV0auCeaSKm+C/WdOlIgXaVsRoLDDlZqXq2 FC6BFA2ade3gfAlF6D3t6fJAyvpNFcdPWO7XiMzxIkMBBVwYx/Q8ufego2WcYyexBctFo2w1rY6aS W7UIvs/bmL57/g==; In-Reply-To: (message from Gerd =?utf-8?Q?M?= =?utf-8?Q?=C3=B6llmann?= on Sat, 04 Jan 2025 09:02:20 +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:327657 Archived-At: > From: Gerd Möllmann > Cc: Eli Zaretskii , Pip Cet , > spd@toadstyle.org, emacs-devel@gnu.org > Date: Sat, 04 Jan 2025 09:02:20 +0100 > > Another thought that crossed my mind. Not that I have an idea > how to use that, but maybe someone else has? > > 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. > > 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. > > 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.