summaryrefslogtreecommitdiffstats
path: root/src/common/PriorityCache.h
diff options
context:
space:
mode:
authorMykola Golub <mgolub@suse.com>2019-05-19 12:09:22 +0200
committerMykola Golub <mgolub@suse.com>2019-06-11 08:59:04 +0200
commit03085f7e4648542a137f49d6720c72a5e7046bfa (patch)
tree459e2a6dc41770a6cb16c1e1d7761fe038e90006 /src/common/PriorityCache.h
parentcommon: make extra memory allocation for pri cache optional (diff)
downloadceph-03085f7e4648542a137f49d6720c72a5e7046bfa.tar.xz
ceph-03085f7e4648542a137f49d6720c72a5e7046bfa.zip
common: make pri cache perf counters optional
Signed-off-by: Mykola Golub <mgolub@suse.com>
Diffstat (limited to 'src/common/PriorityCache.h')
-rw-r--r--src/common/PriorityCache.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/PriorityCache.h b/src/common/PriorityCache.h
index f0984d273f0..6ac60702241 100644
--- a/src/common/PriorityCache.h
+++ b/src/common/PriorityCache.h
@@ -134,7 +134,8 @@ namespace PriorityCache {
uint64_t get_tuned_mem() const {
return tuned_mem;
}
- void insert(const std::string& name, const std::shared_ptr<PriCache> c);
+ void insert(const std::string& name, const std::shared_ptr<PriCache> c,
+ bool enable_perf_counters);
void erase(const std::string& name);
void clear();
void tune_memory();