Sunday, 26 May 2019

How to measure the amount of memory webview consumes?

Would there be a way to programmatically measure and monitor the memory consumed by

WebView.loadUrl

when we open a webview activity in our Android app?

I have noticed that for some reason the webpage that I open using WebView.loadUrl has some memory leak and the amount of memory it uses keeps on increasing under random condition. I wanted to programmatically catch that and run some method if the memory usage of my webview page goes beyond certain range.



from How to measure the amount of memory webview consumes?

No comments:

Post a Comment