Skip to main content
Jack li1
Associate III
November 6, 2020
Solved

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

  • November 6, 2020
  • 2 replies
  • 1091 views

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!

This topic has been closed for replies.
Best answer by Martin KJELDSEN

​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.

2 replies

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
November 6, 2020

​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
Jack li1Author
Associate III
November 7, 2020

Thanks

Martin KJELDSEN
Principal III
November 9, 2020

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