• 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
Need help with Instruments 2.0.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need help with Instruments 2.0.1


  • Subject: Need help with Instruments 2.0.1
  • From: Ricky Sharp <email@hidden>
  • Date: Tue, 5 Jan 2010 17:40:18 -0600

In searching archives and the web, I only see threads involving the older version of Instruments.  I'm using 2.0.1 which is part of the Xcode 3.2.1 running on Snow Leopard.

Specifically, I have an iPhone OS app (already shipped; about to ship next version) and I'm now doing a final set of tests to ensure no leaks.

I'm running the tests on real hardware (iPhone OS 3.0 on an iPod touch and iPhone OS 3.2.1 on an iPhone 3G).

What I cannot figure out is the Live Bytes and #Living columns.  To me, that's indicating the amount of memory currently allocated and how many objects (or mallocs of a particular size) are still allocated.

I'm using the 'Leaks' template and I'm finding no leaks.  Yet as I hop around my app, the Live Bytes and #Living columns continually grow.  I'm seeing boatloads of Malloc X Bytes under the "Category" column where X is somme number like 16, 48.

Drilling into those, I see many system calls like [NSBundle mainBundle] and [NSDateFormatter _regenerateFormatter]

I don't see any trace of my code listed under the "responsible caller" column.  There's no way my app is using 5+ MB (last time I checked Instruments).

In some cases, I do see lines dealing with malloc that make sense.  For example, "Malloc 8 KB"... says that over the lifetime of my run, app did 402 of those allocations.  Yet only 4 are still being used.

Finally, this is a release build.  No malloc debugging symbols have been enabled and I don't have zombies enabled.  In all my prior usages of Instruments (which was on Leopard running the prior version of Xcode), I never saw these strange results.


___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com



 _______________________________________________
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

  • Follow-Ups:
    • Re: Need help with Instruments 2.0.1
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: File encoding for files ported between Mac and Windows?
  • Next by Date: Re: File encoding for files ported between Mac and Windows?
  • Previous by thread: Re: #pragma doesn't
  • Next by thread: Re: Need help with Instruments 2.0.1
  • Index(es):
    • Date
    • Thread