Sometimes, on devices such as a G1 there is still a GC that occurs
once around every minute due to background system services.
However, there is plenty you can do in your own code to avoid GC runs.
 The first thing I recommend watching is this google presentation:
http://www.google.com/events/io/2009/sessions/WritingRealTimeGamesAndroid.html


On Tue, Oct 19, 2010 at 4:09 PM, fadden <[email protected]> wrote:
> On Oct 19, 2:11 pm, kk <[email protected]> wrote:
>> Is there any way to get more info as to what is causing this?
>> I.e. what in my code is causing the GC to kick in...
>
> In the stand-alone DDMS there is an "allocation tracker" tab.  Select
> your game, click "start tracking", and after fiddling with your game
> for a bit, click "get allocations".  It shows the most recent 512
> allocations, with sizes and stack traces, so you can see exactly
> what's using memory.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://developingthedream.blogspot.com/,
http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to