Use stats to monitor LevelDb file usage.

This adds the following four stats for a syncbase service:
  syncbase/leveldb/service/{hash}/file_count
  syncbase/leveldb/service/{hash}/filesystem_bytes
  syncbase/leveldb/blobmap/{hash}/file_count
  syncbase/leveldb/blobmap/{hash}/filesystem_bytes
and the following two stats metrics per database:
  syncbase/leveldb/db/{blessing}/{DB-name}/{hash}/file_count
  syncbase/leveldb/db/{blessing}/{DB-name}/{hash}/filesystem_bytes
where {hash} is a hash of the file path of the store.

Also fixes a bug: the service store was not being closed when these
service was closed.

Change-Id: I844786c105d2671df1013cd29b2534eeedefb495
5 files changed
tree: b0d1b85c9612838afe5299b00f0204833f599f1e
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTING.md
  11. CONTRIBUTORS
  12. envvar.go
  13. envvar_test.go
  14. LICENSE
  15. PATENTS
  16. README.md
  17. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.