• 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
leaks in my app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

leaks in my app


  • Subject: leaks in my app
  • From: "Sandeep Chandna" <email@hidden>
  • Date: Fri, 11 Jul 2008 10:47:06 +0530

Hi,
 

I am seeing some memory leaks in my application and tried various

tools to figure out the cause but haven't been successful so far.

Any pointers regarding the problem would be helpful. The leaks are

seen only on the mac (no noticeable leak on windows) in the order of
10s of MBs (as shown by activity monitor).

 

-           Using the command line tool 'leaks' (with MallocStackLogging)

showed only 0.5MB of memory leak which is far less than the actual amount of leak.

This information does not seem to be correct as the activity monitor

shows the amount of leak to be much larger than this.

-           Using MallocDebug showed almost same information as leaks.

-           ObjectAlloc showed slightly higher amount of memory leaked but it

incorrectly reported objects that were deleted as leaks. The objects

in question were CF objects wrapped around a ScopedDeleter. Moreover,

ObjectAlloc didn't show a full stack crawl as the functions close to

the top of the stack were missing in some cases.
 
Leaks/ObjectAlloc etc shows maximum of 1MB memory leak in my app whereas
Activity monitor shows memory increase by few 10s of MBs. What could be going
wrong here? Is it possible that Activity monitor is showing memory increase
even when there is no memory leak? could Activity monitor's memory increase be
just because of fragmentation?

  

            Is there any better tool to find memory leaks on Mac? Is

there any setting of the utilities mentioned above that we could tweak to

get more relevant information?
 
Any help is appreciated
Thanks
Sandeep
 _______________________________________________
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: leaks in my app
      • From: David Dunham <email@hidden>
    • Re: leaks in my app
      • From: Fred Leboucher <email@hidden>
  • Prev by Date: Re: Beep when closing a project?
  • Next by Date: Re: leaks in my app
  • Previous by thread: Re: Interface builder won't open my window
  • Next by thread: Re: leaks in my app
  • Index(es):
    • Date
    • Thread