unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Andrew De Angelis <bobodeangelis@gmail.com>
To: "Daniel Martín" <mardani29@yahoo.es>
Cc: Qiantan Hong <qthong@stanford.edu>, Po Lu <luangruo@yahoo.com>,
	 "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: Volunteering to help on etc/TODO item: Improved xwidgets support
Date: Fri, 21 Oct 2022 19:29:52 -0400	[thread overview]
Message-ID: <CAP5CrM3oXCmkH6B4rt00sFi-hwOEGH7J+sOA=xW5wBL=HD+G2w@mail.gmail.com> (raw)
In-Reply-To: <m135biagtu.fsf@yahoo.es>

[-- Attachment #1: Type: text/plain, Size: 2271 bytes --]

Thanks Daniel! That's very helpful. I was looking at documentation online
regarding profiling Emacs, but most of it is GNU/Linux focused so they'd
all mention gprof, which to my understanding doesn't work on Mac.
I'll work on using the Instruments.app, that should be very helpful in
finding the leaks.

On Thu, Oct 20, 2022 at 7:13 AM Daniel Martín <mardani29@yahoo.es> wrote:

> Andrew De Angelis <bobodeangelis@gmail.com> writes:
>
> > Great, thanks Qiantian for the info.
> > I'm looking into ways to adapt the Objective C code to use manual
> reference
> > counting rather than ARC. Is this a problem that other Objective-C Emacs
> > files have? Maybe I can also come up with some general rules/approaches
> to
> > help people fix the problem in other files.
> > One thing that would be very helpful is if you (or anyone else) is aware
> of
> > somebody making this fix (ARC -> MRC in Objective C) before: most of the
> > tutorials/documentation I'm finding on the topic is on how to go in the
> > opposite direction, which is helpful information but I'm stuck "reverse
> > engineering" the whole approach.
> >
>
> I'd also suggest instrumenting Emacs with Instruments.app and the
> "Leaks" profile.  The generated profile will indicate if there are
> retain/release/autorelease problems that led to leaked objects under
> the MRC model.
>
> In recent versions of macOS you might have problems running Emacs under
> Instruments.app.  One way to resolve this problem is by embedding a
> custom entitlement that sets "com.apple.security.get-task-allow" and
> then signing the binary again.  That is, run this command from a shell:
>
> $ codesign -s - -v -f --entitlements Entitlements.plist emacs
>
> In the command above, "emacs" is the built Emacs binary and
> Entitlements.plist should contain this text:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "
> https://www.apple.com/DTDs/PropertyList-1.0.dtd">
> <plist version="1.0">
>   <dict>
>     <key>com.apple.security.get-task-allow
>     </key>
>     <true/>
>   </dict>
> </plist>
>
> I suspect this tweak could perfectly be part of the Emacs build system
> for NS, but I haven't investigated further.
>

[-- Attachment #2: Type: text/html, Size: 3015 bytes --]

  reply	other threads:[~2022-10-21 23:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-18 15:55 Volunteering to help on etc/TODO item: Improved xwidgets support Andrew De Angelis
2022-10-19  1:33 ` Po Lu
2022-10-19  3:43   ` Andrew De Angelis
2022-10-19  4:45     ` Po Lu
2022-10-19  4:55       ` Andrew De Angelis
2022-10-19  5:11         ` Po Lu
2022-10-19 18:54     ` Qiantan Hong
2022-10-20  2:23       ` Andrew De Angelis
2022-10-20  2:46         ` Po Lu
2022-10-20 11:13         ` Daniel Martín
2022-10-21 23:29           ` Andrew De Angelis [this message]
2022-10-22  0:07             ` Po Lu
2022-10-22  2:13               ` Andrew De Angelis
2022-10-22  4:49               ` Matt Armstrong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAP5CrM3oXCmkH6B4rt00sFi-hwOEGH7J+sOA=xW5wBL=HD+G2w@mail.gmail.com' \
    --to=bobodeangelis@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=mardani29@yahoo.es \
    --cc=qthong@stanford.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).