From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#45898: 27.1; wedged in redisplay again Date: Fri, 1 Jul 2022 10:49:04 +0200 Message-ID: <201D8E28-F7BD-4E3D-826F-37008CF73003@gmail.com> References: <46b65e3f-cf3d-a3f2-9a9a-100e58274ff6@jovi.net> <83v8t6us8t.fsf@gnu.org> <87zgiinptk.fsf@gnus.org> <83mteiufih.fsf@gnu.org> <877d5kojbo.fsf@gnus.org> <83zgigu3e0.fsf@gnu.org> <500e4b9c69f2a90e7cf05b956178d71b@webmail.orcon.net.nz> <835yl3tnv3.fsf@gnu.org> <83iloyo0x7.fsf@gnu.org> <83mte5jukr.fsf@gnu.org> <837d57gbed.fsf@gnu.org> <83o7yicx3p.fsf@gnu.org> <83pmir5lwc.fsf@gnu.org> <83mtdu68cl.fsf@gnu.org> <837d4yf18n.fsf@gnu.org> <6A3A8E3E-9FF6-4509-893B-EBFF7B573CDA@gmail.com> <83y1xde5cs.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Content-Type: multipart/signed; boundary="Apple-Mail=_037C6668-4802-4837-A7FE-AC1502F24E39"; protocol="application/pgp-signature"; micalg=pgp-sha512 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34213"; mail-complaints-to="usenet@ciao.gmane.io" Cc: psainty@orcon.net.nz, larsi@gnus.org, Emacs-hacker2018@jovi.net, monnier@iro.umontreal.ca, 45898@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 01 10:50:27 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1o7CM6-0008lU-Pb for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Jul 2022 10:50:26 +0200 Original-Received: from localhost ([::1]:41196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7CM5-0005Bv-AE for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Jul 2022 04:50:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47758) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7CLi-0005BC-DV for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 04:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42336) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o7CLh-0004o4-UB for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 04:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o7CLh-000207-SP for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 04:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Jul 2022 08:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45898 X-GNU-PR-Package: emacs Original-Received: via spool by 45898-submit@debbugs.gnu.org id=B45898.16566653577610 (code B ref 45898); Fri, 01 Jul 2022 08:50:01 +0000 Original-Received: (at 45898) by debbugs.gnu.org; 1 Jul 2022 08:49:17 +0000 Original-Received: from localhost ([127.0.0.1]:36233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7CKz-0001yb-9v for submit@debbugs.gnu.org; Fri, 01 Jul 2022 04:49:17 -0400 Original-Received: from mail-ej1-f42.google.com ([209.85.218.42]:35665) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7CKv-0001yE-07 for 45898@debbugs.gnu.org; Fri, 01 Jul 2022 04:49:16 -0400 Original-Received: by mail-ej1-f42.google.com with SMTP id pk21so2829384ejb.2 for <45898@debbugs.gnu.org>; Fri, 01 Jul 2022 01:49:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=KiX/reUdlzLlUkoc/NLHKnI7I8kX61+/G3VOaBWoKys=; b=fsnmFLlvy/1fJpcdNaY/3ZdHJftUMLr2jNkNlDWJPdGVVfV889HhXr8vH5E6QxCKZG aVefWtGvOkrwYtDHLeeyLorl03/F6YHMa/Ida5pW6EurpfHO2R2rjgFUCPLN81G3lgyl K5hYt52fv7hAe2/JVW0ryNunzVhY56G1zF+N56uPX13JJRX/p05aZA/gyT02843B2h5f RnaYHnJiYiXUSTrlF4DEUjeGs4Ljvz2Vw4tbU8DNBKdUowqZg2Qh3ayEiTcDVQXo/nL4 S6O6Q7GHT/fHBaWAwRPENDP7lhrRLmeyhbo37tn4BJ7I89xzH5RyBI83Ow88sLRm/Ws5 s4TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=KiX/reUdlzLlUkoc/NLHKnI7I8kX61+/G3VOaBWoKys=; b=Zk98lQ0Ap4H9EUKswV8SdNBRyHO1TaSUb0NtpHWAqhmzdSOH4XbAr4OxtEnKfGCuCj 8A5tj/+6OxhO9WjCmAhdRLRMRLWtKnI1W8kybHftbEn7Wdmlq1qMTzgJck4NPgFxe0jr JM53FJiaxxC9scrqnZua9YczKZPoNkcdenUWhiIYBhH79f/g+iwJf782lPS4iJvNbKk4 de0vIPpCz1NqG57wjNsiZt+B3YcWU92ZcgoO0VSN1era73usgCFxm5mBbvt/4+bo7l+D bEqAx7CHQ7LcWIMzWsK45Ti5j96cpra/Tof5QVGtt79rB5gdL0z7NDQNyMC1U4O861hb aWaQ== X-Gm-Message-State: AJIora+fMLcGyErkab9Yb2KDF74zfmVpuXQ5qZv4VQVUFb3Z3Zq4ft9i q4BtdGHyeH+PnTwjTjfoWuA= X-Google-Smtp-Source: AGRyM1vkFh2G0rYf3DnFk+MxaeiaDKt4IwNWwouY2LW1W6VJ8zfreY3cYTahXRb5C10qmLpLHDBgjw== X-Received: by 2002:a17:907:9605:b0:6f5:c66:7c13 with SMTP id gb5-20020a170907960500b006f50c667c13mr13547861ejc.66.1656665346818; Fri, 01 Jul 2022 01:49:06 -0700 (PDT) Original-Received: from smtpclient.apple (pd9e369c3.dip0.t-ipconnect.de. [217.227.105.195]) by smtp.gmail.com with ESMTPSA id kw7-20020a170907770700b0072a815f3344sm1017696ejc.137.2022.07.01.01.49.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jul 2022 01:49:05 -0700 (PDT) In-Reply-To: <83y1xde5cs.fsf@gnu.org> X-Mailer: Apple Mail (2.3696.100.31) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:235768 Archived-At: --Apple-Mail=_037C6668-4802-4837-A7FE-AC1502F24E39 Content-Type: multipart/mixed; boundary="Apple-Mail=_89984787-C040-489D-8B4B-3BE92155FBAD" --Apple-Mail=_89984787-C040-489D-8B4B-3BE92155FBAD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 2022-07-01,, at 8:04 , Eli Zaretskii wrote: >=20 >> Would it be possible to run this with gprof profiling? I think that = could give some clues what is going on. >=20 > Or (on GNU/Linux only) under 'prof' -- which doesn't require you to > build a special version of Emacs, and still produces detailed CPU > usage info. No one will care, that's why I'm telling: I just found a way to profile Emacs on macOS 12.4, with Apple M1 chip, = using Xcode 13.4.1. Please see the attached shell script. It seems = that Gprof is not supported on my platform, like GDB. I'm not yet sure how useful/reliable and whatnot that is, but it looks = promising, and it doesn't require building with special compiler flags = (I used -g -O0). --Apple-Mail=_89984787-C040-489D-8B4B-3BE92155FBAD Content-Disposition: attachment; filename=xctrace-emacs.sh Content-Type: application/octet-stream; name=xctrace-emacs.sh; x-unix-mode=0755 Content-Transfer-Encoding: 7bit #! /bin/sh # Execution profile for Emacs on macOS. # # Xcode command-line tools must be installed (use xcode-select # --install). # # Build Emacs with -g. Install Emacs with 'make install' which copies # stuff to nextstep/Emacs.app # Assume we are inside a Git repo. Chdir to its root. # Note that .git might be a file when in a git worktree. while [ ! -e .git ]; do cd .. if [ `pwd` == "!HOME" ]; then echo "$0: Not in a Git repo" exit 1 fi done # Check if app was built if [ ! -d ./nextstep/Emacs.app ]; then echo "$0: Cannot find Emacs.app directory" exit 1 fi cd ./nextstep/Emacs.app # Directory where to store xctrace outout trace_dir=Xctrace if [ ! -d "$trace_dir" ]; then mkdir "$trace_dir" fi # Trace and show the result in Instruments trace=`xcrun xctrace record --template="Time Profiler" --target-stdout - \ --output "$trace_dir" --launch -- ./Contents/MacOS/Emacs \ | grep Output | cut -d : -f 2 | sed -e 's/^ //' -e 's/.$//'` echo "Trace file is $trace_dir/$trace" open /Applications/Xcode.app/Contents/Applications/Instruments.app \ "$trace_dir/$trace" --Apple-Mail=_89984787-C040-489D-8B4B-3BE92155FBAD-- --Apple-Mail=_037C6668-4802-4837-A7FE-AC1502F24E39 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIzBAEBCgAdFiEEirYePpiT82Hjkftpc+obGZDFPmMFAmK+tQAACgkQc+obGZDF PmPYjQ/9HfdrOHm3mmJgtqsTYCxWV3HqMvbpaoIwQZmJgQQ0ouOTDPZwY0WkeR+Q UIWHPwKsYhrrip8vwCGBeXQn4aPfVi6EdRRY+Hdp7TecP/2LKxLmWuJ6SgK8xNA2 iPVUowTyBaafOYGTeTt/IJqhyH+VHJM6EMVF1zq+I8cImuTWXWjFTj7qDd/ZZ/8E i5t1RLCufT/SoIVLjrKDW8HjuO3xOf4+QThK/pZ90pPzmqsk0jsN630aK4ECGp52 LfvVPo3Qfw1DBdf4sT76PqAdddc6/gG7z1YruFCBryojZp5E3SxOUfIYhRziI7FK wgTwNIIMxEX4LNBEmSsiatk5DBOciAMFD9mYXq6FTgtVG/5OgInh5TzkGnKnqbZ7 jyiISMpLiHO4wGcZEA04sh3OBpQo3i4wWV8v6Rlp0aGiUS1N3k8hWzmIpKT0ek3+ FXx1U8HD/qSSDdqeRRKwLlGCaPirGHpO8/9Z62kXDneDKLAkp1/zaxjiwDMDwLzK Wijjx9wMsnkgbbxOUAVOYpLXJjBF4xz7sYIb4J06sQdHXAdfi+jtAlazH59n7yJU s5ICjtvZba2XaJGrDnWYPjAeAlwdvwPcfaH5PY9BsxFCXQnDGbeiiEsRh0yqXFkS AkBTuwaBy3cOe0HTk74CkRTtuZLhLgegVeGHuIw4/TobjuEb8lY= =dSBl -----END PGP SIGNATURE----- --Apple-Mail=_037C6668-4802-4837-A7FE-AC1502F24E39--