views:

41

answers:

2

Hi all newbie in iPhone dev thanks to all : Is there a way/ a tool to know how much memory an object uses when it is created while the app is running ? Using thé console for example.

Thanks

+1  A: 

Instruments, included with Xcode Tools, can show you a lot of interesting information about your running application.

Joshua Nozzi
Yea but I know the tool (memory leak, performance tool) but how CAN you see for just obe object.
Floo
A: 

Choose Run->Run with Performance Tool-> Object Allocations. (Or whichever thing you want to monitor)

Chris Cooper
Cool i'll try Do not know if i need to make a new but i need to wait 20 minutes until posting a new one so maybe can someone tell me : when you instance a new objec. You create getters and setters using @property and @synthesize than @release but you can't do with nsInteger why ???
Floo
Floo, that's because NSInteger is not an object like NSString or NSArray. It's a bitness-independent wrapper for int, which is from C.
Jeff Kelley
thanks know it's basic i appreciate
Floo