How to actually see a Bitmap taken from an Android heap dump

前端 未结 5 1045
忘了有多久
忘了有多久 2021-01-05 14:25

In the process of tracking severe memory issues in my app, I looked at several heap dumps from my app, and most of the time I have a HUGE bitmap that I don\'t know of.

5条回答
  •  天命终不由人
    2021-01-05 15:05

    Just take the input to the image and convert it into a bitmap object by using the fileinput stream/datastream. Also add logs for seeing data for each image that gets used.

提交回复
热议问题