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: MPS: profiler Date: Fri, 21 Jun 2024 10:31:55 +0200 Message-ID: References: <87v823xvq1.fsf@localhost> <86cyobmmhc.fsf@gnu.org> <87r0crxung.fsf@localhost> <87le2zxsqx.fsf@localhost> <8634p6n7jd.fsf@gnu.org> <87tthm3gq2.fsf@gmail.com> <87sex6ags5.fsf@localhost> <87msne3flr.fsf@gmail.com> <87frt63dvt.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="11688"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Ihor Radchenko , 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 Jun 21 10:32:51 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 1sKZhT-0002rk-3C for ged-emacs-devel@m.gmane-mx.org; Fri, 21 Jun 2024 10:32:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKZgg-000841-AA; Fri, 21 Jun 2024 04:32:02 -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 1sKZge-00083V-Pt for emacs-devel@gnu.org; Fri, 21 Jun 2024 04:32:00 -0400 Original-Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sKZgd-0004cZ-CM; Fri, 21 Jun 2024 04:32:00 -0400 Original-Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-57d106e69a2so2856363a12.0; Fri, 21 Jun 2024 01:31:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718958717; x=1719563517; 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=wP5+cRYtwimlPV/6x7SCxq35U0dMVGEu7ZixxnVHcfQ=; b=H/gSGHsfZO+qmoHQMbH9Mf9xytixIx/IyLlLpcQ3b7Pu8xYcOHs55ZmpqTWc4f0vbE 684OZsk4osATOvn8iMZ4/+qfEUcLiOAcWLXaOr0gQ4AQOGRDHws/XTnBtu4xSOQYDx9Z olK1KTZIZT/xzKywpE5eYBaas4Wbfa7nzn8CBxpYlvnJEW6aiYp//veHiFcqFKggpF8G xgYEJ1DC2MQurv1dR5RJ01zZREuGp6KojQmqNYl7TvK2Y9xU3G5ASSBhOU6BtB9O1S5f 6jySNo+kJzwjjYsZiCS0XchekHuu/ocFMtcLMpm2uD73XA3bz4gqZarlFizO5VlIJbkz Wevg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718958717; x=1719563517; 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=wP5+cRYtwimlPV/6x7SCxq35U0dMVGEu7ZixxnVHcfQ=; b=Bo0Fh9rH7i8v2sW+USPYTGl6Y7KKpAGtHLfHXdC6JSTRhYm+rYlfYFrbhMpygkbKuj 0k6mJCkcf7GJ2if0h0z3o9oINWEh6LcWz6EOLTNTawiCeIivsrOaW6/81UWewpMJsb5y 9dMYA2TSZAF7stFG9s3f9ua7Y13289ArUX2JVHJpG5hQmegLZ4gsKQLitTC4dMWui8dA khYYVtRJiwrvif/u7KapUFiIoS+qaRParQnowQg3LpuC/NFPlveNZDG7lbsvlexROYLQ ynkZhu1mwq3BPuh6RXpHBd7CALAJPFDZHklHV+pHTRJhMYSiAQhAUmAMcKkleNIHR/tb pPEQ== X-Forwarded-Encrypted: i=1; AJvYcCWxINftxaTIKLd0/Lad5VPS3kVmHNa2AGiGBnaJd/UwBdg2g+V+n8hjoazZ/bOJy4nUhIjc9ELcpmOqvBvhS6sqnHfNCcUC/wi0omgVLkojLrY= X-Gm-Message-State: AOJu0Yyub+l0b7TTm4UMkV7I0dFPFZm9FBwGEnxtlY9aSnH5fKv/kQtg XQPuMHT5B+6pZmDZS+fzUHxHdXc9/6R2gCtGwfh5osx6NaQoJjmdWva32g== X-Google-Smtp-Source: AGHT+IEYP2vvT2LHzURfwmoRMnl5+y0T8hidNfGxUl4JsbGIQQcAHMTMe5pxpVQHxybNbcY9olVWqA== X-Received: by 2002:a05:6402:1a45:b0:57c:ff0d:b781 with SMTP id 4fb4d7f45d1cf-57cff0db78dmr6238024a12.16.1718958716685; Fri, 21 Jun 2024 01:31:56 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a72a.dip0.t-ipconnect.de. [79.227.167.42]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57d3042cca2sm615177a12.36.2024.06.21.01.31.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jun 2024 01:31:56 -0700 (PDT) In-Reply-To: <87frt63dvt.fsf@gmail.com> (Helmut Eller's message of "Fri, 21 Jun 2024 10:21:10 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x530.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, T_SCC_BODY_TEXT_LINE=-0.01 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:320374 Archived-At: Helmut Eller writes: > On Fri, Jun 21 2024, Gerd M=C3=B6llmann wrote: > >>> There is a function mps_arena_busy, that might be useful. The doc says >>> that it should only be used for debugging. But the implementation >>> actually checks if the arena holds a lock. >> >> Yes, the SIBPROF handler could at least return early then. > > Perhaps something like this? Not sure. The result of is_busy is only valid at the point in time when it is called.