Skip to content

Commit cd95497

Browse files
committed
common/perf_counters: forward-declare class utime_t
And add a few missing includes. Signed-off-by: Max Kellermann <[email protected]>
1 parent b9ffdba commit cd95497

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/common/perf_counters.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "common/dout.h"
1919
#include "common/valgrind.h"
2020
#include "include/common_fwd.h"
21+
#include "include/utime.h"
2122

2223
using std::ostringstream;
2324
using std::make_pair;

src/common/perf_counters.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,21 @@
1717
#ifndef CEPH_COMMON_PERF_COUNTERS_H
1818
#define CEPH_COMMON_PERF_COUNTERS_H
1919

20+
#include <functional>
21+
#include <set>
2022
#include <string>
2123
#include <vector>
2224
#include <memory>
2325
#include <atomic>
2426
#include <cstdint>
2527

2628
#include "common/perf_histogram.h"
27-
#include "include/utime.h"
2829
#include "include/common_fwd.h"
2930
#include "common/ceph_mutex.h"
3031
#include "common/ceph_time.h"
3132

33+
class utime_t;
34+
3235
namespace TOPNSPC::common {
3336
class CephContext;
3437
class PerfCountersBuilder;

src/common/perf_counters_cache.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "common/perf_counters.h"
44
#include "common/ceph_context.h"
55
#include "common/intrusive_lru.h"
6+
#include "include/utime.h"
67

78
namespace ceph::perf_counters {
89

0 commit comments

Comments
 (0)