[MonoTouch] Monotouch issue with Xcode's Instruments

Rolf Bjarne Kvinge rolf at xamarin.com
Thu Mar 22 00:11:39 UTC 2012


Hi,

I think you're looking only at the Live Bytes, but they don't tell the
whole story.

You need to look at the VM tracker tool, and take heap snapshots there.
Then you look at the heapshots, and in particular look at the Dirty Size
column and the Memory Tag 70 row (Memory Tag 70 is image data, which is
usually where issues are).

I hope this helps,
Rolf

On Tue, Mar 20, 2012 at 7:03 AM, Morph268 <angriawan at hotmail.com> wrote:

> I am having problem getting the correct memory allocation data on iOS
> application written using MonoTouch.
>
> I wrote a simple application that periodically adds bunch objects to a
> list.
> After I run Instruments on the app; the total memory allocation is peaked
> at
> 2.09MB. This doesn't seem right because I know I allocated more than that.
>
> I kept increasing the number of objects in the list to around 38000
> objects;
> at that time it looks like iOS automatically kill the app because it
> reaches
> the max limit. The reading for total allocation in Instruments is still
> around 2mb.
>
> My question is that is there any setting that I need to set before running
> the instrument.
>
> Things that I would like to mention:
> - I tried to build both Release and Debug.
> - I deployed the app to device and run the instrument against it.
> - I have the latest version of Monotouch and Monodevelop
> - I have XCode SDK 5.1 installed.
>
> Any help is greatly appreciated.
>
> Thank you much, AA
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Monotouch-issue-with-Xcode-s-Instruments-tp4487776p4487776.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monotouch/attachments/20120322/bb36a950/attachment.html>


More information about the MonoTouch mailing list