• 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: How to determine where memory has gone?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to determine where memory has gone?


  • Subject: Re: How to determine where memory has gone?
  • From: Kate Stone <email@hidden>
  • Date: Tue, 03 Dec 2013 11:21:59 -0800

There are several ways to accomplish what you’re after.  The selection range acts as a filter, so in conjunction with the Allocations instrument this poses the question “what was allocated during this period of time.”  This can be extremely useful when you’re looking at a sudden spike in memory use on the timeline and want to investigate after the fact.  For the specific case you’re talking about, though, you might want to look at the Generation Analysis feature.  Here’s how it works:

1) Launch your application with the Allocations instrument and get to the point just before the operation you think is problematic
2) With the Allocations instrument selected, look in the upper left of the Details Pane occupying the bottom of the window and you’ll find a “Mark Generation” button.  Press it once.  You’ll now have a “Generation A” display in the detail pane that shows everything allocated up to that point.
3) Perform the suspect operation
4) Click “Mark Generation” again, creating a “Generation B” that contains everything allocated and not subsequently freed during the interval between the two markers.

Kate Stone email@hidden
 Xcode Runtime Analysis Tools
Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: XCode 5.0.2 crashes constantly
  • Next by Date: Xcode 5 Core Data mapping model editor can't drag-rearrange items?!
  • Previous by thread: Re: XCode 5.0.2 crashes constantly
  • Next by thread: Xcode 5 Core Data mapping model editor can't drag-rearrange items?!
  • Index(es):
    • Date
    • Thread