summaryrefslogtreecommitdiff
path: root/src/mongo/util/heap_profiler.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2016-07-28 12:46:19 -0400
committerBenety Goh <benety@mongodb.com>2016-07-28 12:46:19 -0400
commitda26506b04372d8881288788c9eaa85f34fee671 (patch)
tree956a8ca5c823948de12ac70b90a5ec46d74ee09b /src/mongo/util/heap_profiler.cpp
parentf2afa270b9c4aa5f0dcfc68dbce7817626da500e (diff)
downloadmongo-da26506b04372d8881288788c9eaa85f34fee671.tar.gz
SERVER-20239 fixed lint
Diffstat (limited to 'src/mongo/util/heap_profiler.cpp')
-rw-r--r--src/mongo/util/heap_profiler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/util/heap_profiler.cpp b/src/mongo/util/heap_profiler.cpp
index 33b0eb4f9de..000dea7b646 100644
--- a/src/mongo/util/heap_profiler.cpp
+++ b/src/mongo/util/heap_profiler.cpp
@@ -559,8 +559,9 @@ private:
// Sort the stacks and find enough stacks to account for at least 99% of the active bytes
// deem any stack that has ever met this criterion as "important".
- auto sortByActiveBytes =
- [](StackInfo* a, StackInfo* b) -> bool { return a->activeBytes > b->activeBytes; };
+ auto sortByActiveBytes = [](StackInfo* a, StackInfo* b) -> bool {
+ return a->activeBytes > b->activeBytes;
+ };
std::stable_sort(stackInfos.begin(), stackInfos.end(), sortByActiveBytes);
size_t threshold = totalActiveBytes * 0.99;
size_t cumulative = 0;
@@ -666,9 +667,8 @@ ExportedServerParameter<long long, ServerParameterType::kStartupOnly>
"heapProfilingSampleIntervalBytes",
&HeapProfiler::sampleIntervalBytesParameter);
-MONGO_INITIALIZER_GENERAL(StartHeapProfiling,
- ("EndStartupOptionHandling"),
- ("default"))(InitializerContext* context) {
+MONGO_INITIALIZER_GENERAL(StartHeapProfiling, ("EndStartupOptionHandling"), ("default"))
+(InitializerContext* context) {
if (HeapProfiler::enabledParameter)
HeapProfiler::heapProfiler = new HeapProfiler();
return Status::OK();