diff options
-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 288bd441e08..ecfa3bdb885 100644 --- a/src/mongo/util/heap_profiler.cpp +++ b/src/mongo/util/heap_profiler.cpp @@ -35,6 +35,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> @@ -530,6 +531,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; } |