mirror of https://gitee.com/bigwinds/arangodb
malloc_stats_print under Linux, je_malloc_stats_print under Apple
This commit is contained in:
parent
1a6cadbfe1
commit
9064305c95
|
@ -605,7 +605,11 @@ static void DumpMallocStats(std::string* stats) {
|
|||
std::unique_ptr<char> buf{new char[kMallocStatusLen + 1]};
|
||||
mstat.cur = buf.get();
|
||||
mstat.end = buf.get() + kMallocStatusLen;
|
||||
#ifdef __APPLE__
|
||||
je_malloc_stats_print(GetJemallocStatus, &mstat, "");
|
||||
#else
|
||||
malloc_stats_print(GetJemallocStatus, &mstat, "");
|
||||
#endif
|
||||
stats->append(buf.get());
|
||||
#endif // ROCKSDB_JEMALLOC
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue