“live bytes” different on simulator versus device

I have a program that is showing, in the allocations instrument, approx. 72 MB of "live bytes" but when I run the profiling on my iPod touch, it shows 6 MB. I don't understand why the vast difference. Can anybody please explain this?

Answers


Keep in mind that the iOS Simulator is a simulator, not an emulator.

The iOS Simulator works by compiling your iOS application to x86 code, and linking it against a set of system frameworks which simulate their iOS equivalents on a desktop computer. These frameworks are, of necessity, not identical to those that you'd find on "real" iOS -- they are, after all, compiled for a different CPU architecture, and are "talking to" desktop hardware, not a handheld device.

Knowing this, it should be understandable that some aspects of application performance may be radically different on the Simulator than on a real device. Keep this in mind, and test your code early and often on real hardware!


Need Your Help

Inconsistent 'Unknown type name' error in protocol referencing NSManagedObject subclasses

objective-c ios5 xcode4 protocols nsmanagedobject

I have two protocols declared in my project. The first one I wrote is named SSSelectingCategory.h

regex for a sort field

javascript regex

I have created a javascript sort function to sort a list of articles by title. I am going to convert all of the sortable words to capital letters so I do not have to deal with the differences assoc...

Infinite loop when using cmpq and je

assembly x86-64 decrement cmp

I'm decrementing RAX on each iteration. If RAX is zero, the program should change flow.