android - Is it possible to know at runtime when Garbage collection is occuring? -



android - Is it possible to know at runtime when Garbage collection is occuring? -

basically, using achartengine charting application. seems have memory leak somewhere garbage collection occuring often. problem is, whenever gc occurs, messes chart. can phone call repaint() prepare it, need know when gc.

image of messed chart below

[url=http://img166.imagevenue.com/img.php?image=403999439_device_2011_07_11_122608_122_441lo.png][img]http://img166.imagevenue.com/loc441/th_403999439_device_2011_07_11_122608_122_441lo.png[/img][/url]

each java object have method finalize() called before gc seek "delete" object. example

hope help.

android garbage-collection

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -