Re: monitoring retainCount
Re: monitoring retainCount
- Subject: Re: monitoring retainCount
- From: Shawn Erickson <email@hidden>
- Date: Wed, 26 May 2004 13:25:05 -0700
On May 26, 2004, at 6:40 AM, email@hidden wrote:
Von: Stefan Fisk <email@hidden>
Datum: Wed, 26 May 2004 13:44:15 +0200
An: email@hidden
Betreff: monitoring retainCount
is there any way to monitor retainCount for an object?
i'm writing a file based NSMutableArray subclass, and i would like it
if objectAtIndex: could return the same object throughout the object's
lifetime, to preserve memory etc..
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
Hi,
I hope this can help you ( it's from the the cocoa documentation):
You might find it necessary to determine what is the retain count for
an
object.
From the gdb console in Xcode enter:
print (int)[theObject retainCount]
If you are using gdb from a Terminal, you can also examine the retain
count
using the command line.
One can also use the Apple provided ObjectAlloc[1] tool to sample an
application while it is running. Also the folks at the OmniGroup have a
great tool called OmniObjectMetter[2].
[1] /Developer/Applications/Performance Tools/ObjectAlloc.app
[2]
http://www.omnigroup.com/developer/omniobjectmeter/
-Shawn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.