diff options
author | Bruce Lucas <bruce.lucas@10gen.com> | 2016-10-07 14:31:37 -0400 |
---|---|---|
committer | Bruce Lucas <bruce.lucas@10gen.com> | 2016-10-07 15:48:33 -0400 |
commit | 8410a7cd7d145d5923f9b5ebc9672e612e6fcc1d (patch) | |
tree | d570754e78dd0a9ef4b1f1adbc9f75638868eb86 /src/mongo | |
parent | 6e8a3d683182f0ce68b3a19547a2fb00d3909b19 (diff) | |
download | mongo-8410a7cd7d145d5923f9b5ebc9672e612e6fcc1d.tar.gz |
SERVER-26465 Log somap info when doing heap profiling
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/util/heap_profiler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/util/heap_profiler.cpp b/src/mongo/util/heap_profiler.cpp index c2410ef2734..8b1de2a0dd5 100644 --- a/src/mongo/util/heap_profiler.cpp +++ b/src/mongo/util/heap_profiler.cpp @@ -36,6 +36,7 @@ #include "mongo/db/commands/server_status.h" #include "mongo/db/server_parameters.h" #include "mongo/util/log.h" +#include "mongo/util/stacktrace.h" #include <gperftools/malloc_hook.h> #include <third_party/murmurhash3/MurmurHash3.h> @@ -531,6 +532,9 @@ private: << "maxActiveMemory " << maxActiveMemory / MB << " MB; " << "objTableSize " << objTableSize / MB << " MB; " << "stackTableSize " << stackTableSize / MB << " MB"; + // print a stack trace to log somap for post-facto symbolization + log() << "following stack trace is for heap profiler informational purposes"; + printStackTrace(); logGeneralStats = false; } |