-2

I have the following map structure used in the code:

globalIndexMap := make(map[string][]byte)

Which is updated every time a new entry committed to the instance of LevelDB. I need to measure the memory size of globalIndexMap. How to do it?

r4sk01
  • 15
  • 4
  • 1
    You can compute it by iterating. Or you can keep a size variable and add to it/subtract from it when map is updated – Burak Serdar Aug 21 '23 at 20:33

0 Answers0