Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7398681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:54:02+00:00 2026-05-29T03:54:02+00:00

While profiling my iOS app I perform a simple task multiple times where I

  • 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 the view gets popped.

screenshot of instruments

Now because the persistent count is 0 for almost half of the heapshots, would it be safe to assume there is no abandoned memory?

I’ve heard that the rows with a persistent count greater than zero could be because of some internal caching.

I am using Xcode 4.2.1 and the app is using ARC.

Edit:

Thanks to Kendall Helmstetter Gelner I’ve managed to debug this problem further. I probably shouldn’t have been using the simulator for debugging this. I’ve now run it on the device and it now looks like there is one object which isn’t getting released:

Heapshots of app running on device

After looking through the extended detail view I think I’ve just about found the cause of the problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T03:54:03+00:00Added an answer on May 29, 2026 at 3:54 am

    It’s hard to say from just that screenshot what might be cached or not – UIImage will cache things, possibly some other system elements too. It looks like you might be running that in the simulator, have you tried heapshot on a device?

    You could also select “Hide System Libraries” to the side and get a better idea how much of your own code is involved.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While profiling an app, realise that quite a lot of time (37%) is spent
While profiling my app (C#, .NET 4), I noticed a third-party library I am
while profiling a java application that calculates hierarchical clustering of thousands of elements I
I am running some profiling tests, and usleep is an useful function. But while
While going through university and from following the development of SO, I've heard a
While working in a Java app, I recently needed to assemble a comma-delimited list
while profiling NHibernate with NHProf I noticed that a lot of time is spend
I am running into the following issue while profiling an application under VC6. When
I've made a simple dummy server/dummy client program using IOCP for some testing/profiling purpose.
Here is what I'm doing. My application takes points from the user while dragging

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.