blob: 72a570dd62556cdecacd12adc7941f6c41dce823 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <cstddef>
#include <cstdint>
namespace vespalib::datastore {
/**
* Represents aggregated memory statistics for all buffers in a data store.
*/
class MemoryStats
{
public:
size_t _alloc_entries;
size_t _used_entries;
size_t _dead_entries;
size_t _hold_entries;
size_t _allocBytes;
size_t _usedBytes;
size_t _deadBytes;
size_t _holdBytes;
uint32_t _freeBuffers;
uint32_t _activeBuffers;
uint32_t _holdBuffers;
MemoryStats();
MemoryStats& operator+=(const MemoryStats& rhs);
};
}
|