cancel
Showing results for 
Search instead for 
Did you mean: 

How do I know how many dynamic bitmaps and bitmap id are loaded

Jack li1
Associate III

Hi @Martin KJELDSEN​ :

I want to know how many live images are cached.I found two pointer variables.

  •   static CacheTableEntry* cacheTable; //address of allocation point cache
  •   static BitmapId* allocationTable;  //order of allocations in cache

But I couldn't get any useful information.

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Martin KJELDSEN
Chief III

​We track the number internally, but it's not public - It could be. You could just track it yourself, every time you cache something, increase some counter, and decrease on remove. That's what we do internally. And you already know the total amount the cache can hold because you specified that yourself.

View solution in original post

3 REPLIES 3
Martin KJELDSEN
Chief III

​We track the number internally, but it's not public - It could be. You could just track it yourself, every time you cache something, increase some counter, and decrease on remove. That's what we do internally. And you already know the total amount the cache can hold because you specified that yourself.

Jack li1
Associate III

Thanks

​Welcome! I'll see if maybe we can expose that counter - Appears to be relevant for some.