mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-02 19:25:52 +08:00
Fix complie issue for ALLOC_INSTRUMENTATION
This commit is contained in:
parent
970175a8a2
commit
b2b3a8e791
@ -3242,10 +3242,10 @@ void outOfMemory() {
|
||||
.detail("BackTraces", traceCounts.size());
|
||||
|
||||
for (auto i = traceCounts.begin(); i != traceCounts.end(); ++i) {
|
||||
char buf[1024];
|
||||
std::vector<void*>* frames = i->second.backTrace;
|
||||
std::string backTraceStr;
|
||||
#if defined(_WIN32)
|
||||
char buf[1024];
|
||||
for (int j = 1; j < frames->size(); j++) {
|
||||
_snprintf(buf, 1024, "%p ", frames->at(j));
|
||||
backTraceStr += buf;
|
||||
|
@ -396,10 +396,10 @@ SystemStatistics customSystemMonitor(std::string const& eventName, StatisticsSta
|
||||
uint64_t totalSize = 0;
|
||||
uint64_t totalCount = 0;
|
||||
for (auto i = traceCounts.begin(); i != traceCounts.end(); ++i) {
|
||||
char buf[1024];
|
||||
std::vector<void*>* frames = i->second.backTrace;
|
||||
std::string backTraceStr;
|
||||
#if defined(_WIN32)
|
||||
char buf[1024];
|
||||
for (int j = 1; j < frames->size(); j++) {
|
||||
_snprintf(buf, 1024, "%p ", frames->at(j));
|
||||
backTraceStr += buf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user