]> git.proxmox.com Git - ceph.git/blob - ceph/src/crimson/common/perf_counters_collection.cc
import 15.2.0 Octopus source
[ceph.git] / ceph / src / crimson / common / perf_counters_collection.cc
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3
4 #include "perf_counters_collection.h"
5
6 namespace crimson::common {
7 PerfCountersCollection::PerfCountersCollection()
8 {
9 perf_collection = std::make_unique<PerfCountersCollectionImpl>();
10 }
11 PerfCountersCollection::~PerfCountersCollection()
12 {
13 perf_collection->clear();
14 }
15
16 PerfCountersCollectionImpl* PerfCountersCollection:: get_perf_collection()
17 {
18 return perf_collection.get();
19 }
20
21 PerfCountersCollection::ShardedPerfCountersCollection PerfCountersCollection::sharded_perf_coll;
22
23 }
24
25