I am trying to track some excessive memory allocations in my application. For some reason the use of Debug.setAllocationLimit or VMDebug.setAllocationLimit appears to have no effect.
I have test code that does something like: Debug.setAllocationLimit(0); String s = new String("AAAA"); Debug.setAllocationLimit(-1); expecting the second line to throw an allocation exception but it does not. What is the correct way to track allocations between 2 points in the code execution? Is there some global place where allocations tracking must be turned on before they can be counted? Stefan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---