• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Lost memory, GCD, dispatch sources, Cocoa bindings & User interface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lost memory, GCD, dispatch sources, Cocoa bindings & User interface


  • Subject: Re: Lost memory, GCD, dispatch sources, Cocoa bindings & User interface
  • From: Jean Suisse <email@hidden>
  • Date: Thu, 17 Sep 2015 13:21:11 +0200

>> Additionally, I was unable to find any leaks with Instruments (but I barely know how to use it)
>
> Probably the next step would be to learn more about Instruments.

I was a little to harsh when I said that. I know everything I got from the WWDC videos. But I need more practice. And more knowledge.
For instance, I don’t know how to tell when memory is wasted by to manny heap allocations which fragments the heap. So I had to find an other way to check this possibility and rule it out (I suppressed allocations by building object servers in charge of dealing and recycling them so all allocations occur at launch.

>> and the amount of memory reported by Instruments is far less than the one reported by Activity monitor
>
> There are several different memory usage figures that count different things. (Virtual memory is complicated…) I don’t even know what exactly the column names in Activity Monitor (“Memory”, “Private Memory”, etc.) correspond to anymore. Generally I look mostly at “Private Memory” which I believe is RPRVT — this is memory used only by this process and not shared with any others, which mostly means heap space. (“Memory” includes things like framework code and shared address space, which are used across multiple processes.)

Well, Xcode and Activity monitor agree. Instruments only show like 100 MB when they report GBs. But I may fail to read it correctly.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Lost memory, GCD, dispatch sources, Cocoa bindings & User interface (From: Jean Suisse <email@hidden>)
 >Re: Lost memory, GCD, dispatch sources, Cocoa bindings & User interface (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Lost memory, GCD, dispatch sources, Cocoa bindings & User interface
  • Next by Date: Re: Lost memory, GCD, dispatch sources, Cocoa bindings & User interface
  • Previous by thread: Re: Lost memory, GCD, dispatch sources, Cocoa bindings & User interface
  • Next by thread: Re: Lost memory, GCD, dispatch sources, Cocoa bindings & User interface
  • Index(es):
    • Date
    • Thread