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 9271619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:39:58+00:00 2026-06-18T15:39:58+00:00

When profiling an app, I notice that the live bytes increases by about 250

  • 0

When profiling an app, I notice that the live bytes increases by about 250 KB every time I perform certain actions (involving UIViews).

Looking in the list of objects, the main (growing) culprit just reads as “malloc 144 bytes”.

Occasionally I have used the Allocations instrument to discover objects I have held onto longer than I would like, but I’m not sure how to interpret the “malloc” objects.

Any guidance would be greatly appreciated.

  • 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-06-18T15:39:59+00:00Added an answer on June 18, 2026 at 3:39 pm

    A couple of thoughts:

    1. Allocations tool is great, but I’d focus on Leaks, first. Do you have a clean bill of health there?

    2. Have you run your code through the static analyzer (“Analyze” on the “Product” menu). Especially in non-ARC code, that can identify many issues.

    3. Are you using ARC? If so, that narrows the search.

    4. Do you have zombies turned on? That will result in memory not being released. Make sure to turn off zombies.

    5. Are you sure you don’t have a strong reference cycle (aka retain cycle)? You can put NSLog or breakpoints in your view controller’s dealloc and make sure it’s getting called and ensure you don’t have a strong reference cycle (a circular reference between two or more objects that results in neither being released). (If you don’t have a dealloc method, just add one with a NSLog statement.) Failing to invalidate a repeating NSTimer is a wonderful example of something that can inadvertently cause strong reference cycles. The key issue is that you have to confirm that dealloc is taking place.

    6. Are you definitely popping/dismissing the view controller rather than pushing/presenting another copy of the other view controller? (Failure to see NSLog/breakpoint in the dealloc method can be caused by this, in addition to the strong reference cycle discussed in prior point.)

    7. On your 256 (!) image views are you doing imageNamed to set the image property? The imageNamed method caches images won’t release memory until you get memory warning (though it would only consume memory when you retrieve new images, not re-retrieving existing images).

    Bottom line, there can be a ton of possible issues and there’s not enough in your question to help us diagnose the problem. You have to help us narrow down the problem.

    But start looking at your controllers and make sure they’re being deallocated like they should. I feel your pain about the 144 byte malloc issues, but that’s unlikely to be the culprit of consuming 250kb each time. The malloc is more likely a symptom of a problem, not the source of the problem, and I’d focus on the more basic things listed above, before spending too much time tracking down the source of the malloc calls.

    • 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
I have tried profiling my app, but found that TraceView isn't that user friendly,
In an app I'm profiling, I found that in some scenarios this function is
I'm profiling some code, and cProfile reports that almost all the time is spent
I'm profiling an app that has a boat load of functions in many files
I'm writing a drawing app for the iPad and was doing some time profiling
I compiled my App for Debug/iPhone, opened Instruments for CPU Time profiling, attached it
I always had a question about heap memory behaviour. Profiling my app i get
While profiling my iOS app I perform a simple task multiple times where I
I am profiling an iPhone app and I noticed a strange pattern. In a

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.