From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: MPS: Forwording symbols Date: Thu, 20 Jun 2024 18:17:09 +0200 Message-ID: <87a5jf4mii.fsf@gmail.com> References: <87jziod6yc.fsf@gmail.com> <874j9rcuf6.fsf@gmail.com> <87y173bda9.fsf@gmail.com> <87plsfbcd5.fsf@gmail.com> <87iky6boz7.fsf@gmail.com> <878qz2bh3u.fsf@gmail.com> <87le3282mh.fsf@gmail.com> <87le2z4rzg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25578"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Emacs Devel , Eli Zaretskii To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 20 18:17:47 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 1sKKTo-0006NN-Nn for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Jun 2024 18:17:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKKTR-0004Ko-Q2; Thu, 20 Jun 2024 12:17:21 -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 1sKKTL-0004IA-NE for emacs-devel@gnu.org; Thu, 20 Jun 2024 12:17:15 -0400 Original-Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sKKTK-0001LD-0u; Thu, 20 Jun 2024 12:17:15 -0400 Original-Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a6f7720e6e8so131686466b.3; Thu, 20 Jun 2024 09:17:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718900230; x=1719505030; darn=gnu.org; h=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=b5xchK3xtWoLpPaWDEZnAOIQSPbtbEgFNvqylvbZrfE=; b=RtxzPRMNAvZ+kYlL9/9Qw8+SosU7BpwbUmrBgKAUOFu0zqSoVHZ0JpUe+P8LNTQcut XInZo0vb4hOWs7xSAbbJWcdv5ZpWAI/AdxchlGF+ZfzGFmRL1JiVoRzRIdv4R7n6981u jymb7wU9RIn04m6NLrN0sVx8LPqsT2GHjn8XoBB372IMiS+/2X9N32JA2PbXGVduRqfy VLNNMDoBR29fmZTcXaYNXOOQAIYKznlx4+Wvlj55dFyfoiVhqqZ3s9MwKFKO9t3IrYp2 wcNhgXcmLtrb02khgeHEg6Bbipb2DvAI4+hRtzvy9BcbCu4noAyXeJzXDqdjGDuSdJFw tM9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718900230; x=1719505030; h=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=b5xchK3xtWoLpPaWDEZnAOIQSPbtbEgFNvqylvbZrfE=; b=Cz5TFpnSR73u/mNrUHBB6cofc0NwR937GgPHKfKWmQc8OW/DsnWmHoh8hWOVwx7TB1 IdAHHe7ryFlVfBrCPBEAFRuV/3BKnPEn7xH8cd+OXQdbkIAR7HqFrIAGsydfKplEZN4e wgdYyeL8oSf0A30raq7ljAHHBEWH31LLvNeaOKJ9RjU1gtChzpaQ4bFlay9gOeuyGjmW FBL63tMDKZ1dWdowT5mmUcldd9n0s7fwofYcqWlt8ttMEWsH6tebmAyGbC+zkTkfq1SV CPPv/7bbTr9KTBEirmI3krHQH0HG2HcdX41l8ev4EELUpqMB+kxVul3nHRGbMAztFOzl KTjA== X-Forwarded-Encrypted: i=1; AJvYcCXItQGQY0v/SqQcz5N2dfE+YZm+P+Ihf7mqqt0kfEU/rJb67h+70foR0H8MvAXHHtBBOeAq3/rCh/uvi3c= X-Gm-Message-State: AOJu0YzZoEFOZbV32yUVJ4+FEdTLrOBqWPSCfb1w1sgvfj84Y7EdFFdR 5iNQFTO1odTYZHTvOqbgRJBoGXysWOFBi/P54fP0gSl3jbrw0K2ZrAGfdw== X-Google-Smtp-Source: AGHT+IGI7dTXNwRMqh374+5YXvUyHv3ox9RDwYVNW7yN0LxWv62jZq8BYWKo5xjInnvFpsVykvT4yA== X-Received: by 2002:a17:907:1b0b:b0:a6a:ab5:6f2a with SMTP id a640c23a62f3a-a6fab60a12fmr539489266b.11.1718900230334; Thu, 20 Jun 2024 09:17:10 -0700 (PDT) Original-Received: from caladan ([31.177.116.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f6be36a5fsm626812366b.58.2024.06.20.09.17.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 09:17:09 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Thu, 20 Jun 2024 17:16:08 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::62c; envelope-from=eller.helmut@gmail.com; helo=mail-ej1-x62c.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:320328 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Thu, Jun 20 2024, Gerd M=C3=B6llmann wrote: >> I expected that staticvec to be at the top, but I guess lispsym actually >> makes sense. It's strange though, that the maximum and minimum for >> lispsym vary so much. > > I find it quite unexpected that lispsym takes so long, compared to a > multi-megabyte dump. Maybe ert-tests.el allocates tons of symbols? > Hm. Is it an optimized build? Yes, optimized build. The script below should reproduce it.=20=20=20 --=-=-= Content-Type: text/x-sh Content-Disposition: attachment; filename=record-ert.sh #!/bin/bash export MPS_TELEMETRY_FILENAME=/tmp/mpsio.log export MPS_SQLITE=/tmp/mps.sqlite MPS_TELEMETRY_CONTROL="all" \ ../src/emacs -Q --batch -l lisp/emacs-lisp/ert-tests.el \ --eval '(ert-run-tests-batch-and-exit "ert-test-\\(parse\\|plist\\|record\\|run-tests-batch-exp\\)")' mpseventcnv -f $MPS_TELEMETRY_FILENAME | mpseventsql -p -d -o $MPS_SQLITE sqlite3 $MPS_SQLITE "select root,label,avg(delta),min(delta),max(delta),count(*) as count from (select root, (select I.string from EVENT_Intern AS I, EVENT_Label AS L where I.stringId = L.stringId and R.root=L.address) as label,time, time - lag(time) over (order by time) as delta from (select root,time from EVENT_RootScan union select 'flip',time from EVENT_TraceFlipBegin) R) group by root order by avg(delta) ;" --=-=-=--