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: MPS: profiler Date: Fri, 21 Jun 2024 13:58:26 +0300 Message-ID: <86jziilfzh.fsf@gnu.org> References: <87v823xvq1.fsf@localhost> <86cyobmmhc.fsf@gnu.org> <87r0crxung.fsf@localhost> <87le2zxsqx.fsf@localhost> <8634p6n7jd.fsf@gnu.org> <87tthm3gq2.fsf@gmail.com> <87msneag5u.fsf@localhost> <86r0cqlgvi.fsf@gnu.org> <87ed8qpnqv.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8717"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, eller.helmut@gmail.com, emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 21 12:58:50 2024 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 1sKbyk-00025t-3W for ged-emacs-devel@m.gmane-mx.org; Fri, 21 Jun 2024 12:58:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKbyS-0003zi-CH; Fri, 21 Jun 2024 06:58:32 -0400 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 1sKbyQ-0003zF-Jk for emacs-devel@gnu.org; Fri, 21 Jun 2024 06:58:30 -0400 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 1sKbyQ-0006gZ-Ah; Fri, 21 Jun 2024 06:58:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=U5xP/PAyllp/UHl2VGXOyHu0UV8+a0gSfKsRqToltoc=; b=abllfjwwmDrH qlF/jkWlxPqcvgsmKtzPBcuNbUF8zUXaCKnkZgfv+vJvxX/HViBPlwrhfk8dbIVWjYLt6FawYBOK9 thIKnNaSWtgoA5rLaOUdssvPXqYhBXTxxGGJHig5fOWHvmrHFI4as/RkSVdLM3gDPzuZOC7KAGHsa NMQYNQ1lRt+v55nDg8crSMTVa66UXt3z6dHW70Yup75x1K6XIEpk6d5DM69PzRAcAuEAjJyO3eMIn gcyAz6XsEXVY2Izg6Sds3aXgrSx6KNy7ldzCr9GUwAfLjUa/6xc3yf8gsWvKc3A9JAZQZUi2jmgR2 EMPGhWP7VW7D+/uA1ZXWfw==; In-Reply-To: <87ed8qpnqv.fsf@localhost> (message from Ihor Radchenko on Fri, 21 Jun 2024 10:57:12 +0000) 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:320386 Archived-At: > From: Ihor Radchenko > Cc: gerd.moellmann@gmail.com, eller.helmut@gmail.com, emacs-devel@gnu.org > Date: Fri, 21 Jun 2024 10:57:12 +0000 > > Eli Zaretskii writes: > > >> Profiler might be running for a long time. If I understand correctly, > >> parking anything for a long time risks that "anything" to be not > >> garbage-collected at all. > > > > ... > > Or maybe I misunderstood you suggestion (or that of Gerd): to me, > > "while profileing" means just while the profiler's SIGPROF handler > > runs, nut the whole time profiler is active. > > My understanding that the suggested parking was for the time profiler is > active in Emacs (that is: between M-x profiler-start and M-x > profiler-stop). That's unreasonable and impractical. Gerd, was this what you suggested? > Unless I miss something, SIGPROF handler cannot touch the arena to park > it or it will lead to problems exactly like the one I encountered. That depends on what you mean by "park the arena".