View Memory window questions

Hello,

I run my app in the simulator, and I when I go to the "View Memory" option it opens the nice "Active Memory" or "Memory Usage Stats" window.  Then it has symbols down below, including <Global>, <View Stack>, <Code>, <Entry Point>, <Application Settings>, <API Callbacks>, and <API Statics>

Can someone explain to me the difference between the <View Stack> and <Entry Point> sections?   (as far as what I should be looking at for making my code use a little memory as possible)

Also, I don't really understand the meaning of the <API Callbacks> section.  Can anyone explain?

Thanks in advance!

  • The <View Stack> is the views active in your application. When you call WatchUi.pushView() to push a view+delegate, that will add a view+delegate to this stack; when you call WatchUi.popView(), that will remove one.

    The <Entry Point> section is the entry point to your application as defined by the entry attribute in manifest.xml. Typically this is the object that derives from Application.AppBase.

    The <API Callbacks> section is callbacks that you've registered with the system so that it can notify you when something happens. As an example, if you register for a position callback (via Position.enableLocationEvents(..., callback)) we keep a reference to that callback object and anything that it references. I do not believe that all callbacks are accounted for here- some short term callbacks (like a web request callback) may not be accounted for at all.