I wanted to calculate the current in-memory size occupied by SDWebImage (Not the max size of SDWebImage). During the application usage i need to track the current RAM allocation by SDWebImage cached objects.
Basically i wanted to calculate the size of all images (present at that time) in NSCache object.
How can i do this ?
Thanks.
I think this will return Memory Cache using given code.
Use getSize
function of SDImageCache.h
. Which returns in memory cache.
[[SDImageCache sharedImageCache] getSize];
Follow SDWebImage for more details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With