// stats.mbt
//
// A point-in-time snapshot of Db state, for tests, debugging and demos.

pub(all) struct Stats {
  /// Estimated byte size of the current memtable.
  memtable_bytes : Int
  /// Bytes currently buffered in the WAL (unflushed records).
  wal_bytes : Int
  /// Number of L0 tables on disk.
  l0_files : Int
  /// Number of L1 tables on disk (0 or 1: L1 compaction is a full merge).
  l1_files : Int
  /// Byte size of the current L1 table, if any.
  l1_bytes : Int
  /// Number of L2 tables on disk (0 or 1: the bottom level).
  l2_files : Int
  /// Byte size of the current L2 table, if any.
  l2_bytes : Int
}