Skip to content

Commit 90ff955

Browse files
daverigbytrondn
authored andcommitted
Reduce includes of <platform/histogram.h>
Forward-declare the types in <platform/histogram.h> where possible. Change-Id: Ib8d84f14687ed0bdcbc3529afc5b702fbe61a619 Reviewed-on: http://review.couchbase.org/110225 Reviewed-by: Richard de Mellow <[email protected]> Tested-by: Build Bot <[email protected]>
1 parent 0cc4e0a commit 90ff955

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

daemon/subdocument.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#include <memcached/durability_spec.h>
4040
#include <memcached/protocol_binary.h>
4141
#include <memcached/types.h>
42+
#include <platform/histogram.h>
4243
#include <xattr/blob.h>
4344
#include <gsl/gsl>
4445

engines/ep/src/couch-kvstore/couch-fs-stats.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "common.h"
1918
#include "couch-kvstore/couch-fs-stats.h"
19+
#include "common.h"
2020
#include "kvstore.h"
21+
#include <platform/histogram.h>
2122

2223
std::unique_ptr<FileOpsInterface> getCouchstoreStatsOps(
2324
FileStats& stats, FileOpsInterface& base_ops) {

engines/ep/src/stats.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include <platform/platform_time.h>
2828
#include <relaxed_atomic.h>
2929

30+
#include <platform/histogram.h>
3031
#include <algorithm>
3132
#include <atomic>
3233

utilities/hdrhistogram.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
#include <boost/optional/optional_fwd.hpp>
2121
#include <nlohmann/json_fwd.hpp>
22-
#include <platform/histogram.h>
2322
#include <chrono>
2423
#include <memory>
2524
#include <utility>
@@ -35,6 +34,11 @@
3534
#pragma warning(pop)
3635
#endif
3736

37+
template <typename HISTOGRAM, uint64_t THRESHOLD_MS>
38+
class GenericBlockTimer;
39+
template <typename T>
40+
class MicrosecondStopwatch;
41+
3842
/**
3943
* A container for the c hdr_histogram data structure.
4044
*

0 commit comments

Comments
 (0)