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
Post a Comment