holiman / billy

Very simple datastore
BSD 3-Clause "New" or "Revised" License
50 stars 7 forks source link

Expose slot metrics to the user APIs #18

Closed karalabe closed 1 year ago

karalabe commented 1 year ago

I'm trying to plot via metrics how much overhead we have vs useful data in Billy. For that I need to expose the gap count in the shelves. The PR exposes a few more things for completeness sake.

holiman commented 1 year ago

... but maybe a less intense solution would be go make the shelves track these stats via atomic counters, and similarly make the db track the sum total via atomic counters too?

holiman commented 1 year ago

How about something like this? https://github.com/holiman/billy/compare/stats?expand=1