I have an object which Parse is refusing to let me save because of it's 128kB limit... Following along with this handy SO post: Checking the size of an object in Objective-C, I was able to output the size of my object in question as 144 (malloc_size is not specific about its units, but I assumed bytes). If this is in kB, my object is indeed over the 128kB limit. However, this object should never be in the kB range -- it's two pointers and a three NSNumbers (used as booleans)... Even allowing for object overhead and over-allocations on a 64bit system, we're still in the 200 byte range -- with Parse's overhead, we'll be safe and say 1kB. Still... much less than 128kB.
Specific error is: Error: The object is too large -- should be less than 128 kB. (Code: 116, Version: 1.5.0)
This got me thinking -- what are some good tools for testing or log statements for debugging this type of problem? I'm mostly familiar with the profilers Apple includes and standard C/C++ tools like Valgrind, but I'm not sure about memory introspection on a specific object to tell which attribute is hogging its RAM...
More specific to the project listed above -- What kind of trickery is Parse employing such that three NSNumbers and two pointers take up 128kB on save, and how do I debug this?