Questions tagged [heapshot]

Heapshot is used to find memory leaks in OS X and iOS apps.

Heapshot is a tool built into Instruments that can be used to find memory leaks in OS X and iOS applications. Bbum's writeup is the best set of instructions currently available.

8 questions
14
votes
1 answer

Don't have Heap shot analysis

I am trying to find out where my app has abandoned memory and all the resources I see say to mark a heap shot. However I only have a mark generation button. Where should I find the heap shot button? Or did it just change. Sorry I am new to iOS.
interdatega
  • 153
  • 6
6
votes
1 answer

iOS allocations - persistent count in heapshots not always 0

While profiling my iOS app I perform a simple task multiple times where I push and pop a view from the stack, and then take a heapshot. The same code is executed each time and the pushed view just contains some images which get removed as soon as…
RohinNZ
  • 3,338
  • 5
  • 24
  • 34
5
votes
1 answer

Memory creep as program runs, CGGlyphBitmapCreate (among others)?

This is piggybacking off of a broader question yesterday. I've been use heapshots to pinpoint problems, but they're all in callers that I'm not familiar with. The methods that I have written myself are not showing up, but CoreGraphics seems to be…
4
votes
1 answer

MKMapView is not deallocating memory for MKUserLocation

I have a navigation controller in which VC1 pushes VC2 onto the navigation stack. VC2 has a MKMapView in a tab based view, with user location turned on. When I check for repeat allocations with instruments using Heapshot Analysis tool, I repeatedly…
Krishna K
  • 708
  • 3
  • 10
3
votes
0 answers

UIPickerview causing heap growth on deallocation

New to iOS and trying my best to get to grips with memory management and Instruments. My problem is I'm getting weird memory losses when adding/removing a pickerview. I've set up a very basic example consisting of two buttons: one creates and shows…
MutenFuzz
  • 135
  • 1
  • 9
1
vote
0 answers

iOS heapshot analysis, UIImage & NSData

I used the heapshot analysis, and it pointed to the first two lines reproduced below. It seems like I am releasing all the memory I am allocating. I don't see how the memory is accumulating. NSData* data = [NSKeyedUnarchiver…
user1120008
  • 1,005
  • 4
  • 13
  • 27
0
votes
1 answer

What does this Heapshot mean?

I've been taking heapshots of a certain process. All the leaked objects in all the shots originate in this method: - (void)setArticle:(Article *)article { if (_article != article) { [self.navigationController popToViewController:self…
kubi
  • 48,104
  • 19
  • 94
  • 118
0
votes
1 answer

Is there a way to get a heapshot from Unity3d?

I want to debug which part that consume most of mono memory in Unity because what I saw from profiler is only a chunk said "Mono" something like that and do not know what it is. I have already done the texture observe in Unity profiler and I do not…
Paiboon Panusbordee
  • 781
  • 2
  • 10
  • 26