private void UpdateBytesUsed() { long newBytesUsed = Lengths.RamBytesUsed() + Bytes.RamBytesUsed() + DocsWithFieldBytesUsed(); IwBytesUsed.AddAndGet(newBytesUsed - BytesUsed); BytesUsed = newBytesUsed; }