I was optimizing my app and wanted to know that how much is the size of the object, so that I can also show it in log.
suppose I have
NSDictionary *t
I would suggest using class_getInstanceSize and malloc_good_size to see what it'll round up to. This will not show the ivars and whatnot inside the returned size.
class_getInstanceSize
malloc_good_size
#import #import NSLog(@"Object Size: %zd", malloc_good_size(class_getInstanceSize([yourObject class])));