| Index: third_party/tcmalloc/chromium/src/heap-profile-table.cc
|
| diff --git a/third_party/tcmalloc/chromium/src/heap-profile-table.cc b/third_party/tcmalloc/chromium/src/heap-profile-table.cc
|
| index 68ec5735026f8feced50e6612c760ced6915b809..bcf8edd81b2a1c1bbb60ff6f1dbdc7c2ddfb1600 100644
|
| --- a/third_party/tcmalloc/chromium/src/heap-profile-table.cc
|
| +++ b/third_party/tcmalloc/chromium/src/heap-profile-table.cc
|
| @@ -307,7 +307,8 @@ int HeapProfileTable::UnparseBucket(const Bucket& b,
|
| profile_stats->free_size += b.free_size;
|
| }
|
| int printed =
|
| - snprintf(buf + buflen, bufsize - buflen, "%6d: %8"PRId64" [%6d: %8"PRId64"] @%s",
|
| + snprintf(buf + buflen, bufsize - buflen,
|
| + "%6d: %8" PRId64 " [%6d: %8" PRId64 "] @%s",
|
| b.allocs - b.frees,
|
| b.alloc_size - b.free_size,
|
| b.allocs,
|
| @@ -475,7 +476,7 @@ void HeapProfileTable::DumpTypesIterator(const void* ptr,
|
| char buf[1024];
|
| int len;
|
| const char* mangled_type_name = static_cast<const char*>(ptr);
|
| - len = snprintf(buf, sizeof(buf), "%6d: %8"PRId64" @ %s\n",
|
| + len = snprintf(buf, sizeof(buf), "%6d: %8" PRId64 " @ %s\n",
|
| count->objects, count->bytes,
|
| mangled_type_name ? mangled_type_name : "(no_typeinfo)");
|
| RawWrite(args.fd, buf, len);
|
| @@ -670,8 +671,8 @@ void HeapProfileTable::Snapshot::ReportLeaks(const char* checker_name,
|
| // This is only used by the heap leak checker, but is intimately
|
| // tied to the allocation map that belongs in this module and is
|
| // therefore placed here.
|
| - RAW_LOG(ERROR, "Leak check %s detected leaks of %"PRIuS" bytes "
|
| - "in %"PRIuS" objects",
|
| + RAW_LOG(ERROR, "Leak check %s detected leaks of %" PRIuS " bytes "
|
| + "in %" PRIuS " objects",
|
| checker_name,
|
| size_t(total_.alloc_size),
|
| size_t(total_.allocs));
|
| @@ -717,7 +718,7 @@ void HeapProfileTable::Snapshot::ReportLeaks(const char* checker_name,
|
| e.bytes, e.count);
|
| for (int j = 0; j < e.bucket->depth; j++) {
|
| const void* pc = e.bucket->stack[j];
|
| - printer.Printf("\t@ %"PRIxPTR" %s\n",
|
| + printer.Printf("\t@ %" PRIxPTR " %s\n",
|
| reinterpret_cast<uintptr_t>(pc), symbolization_table.GetSymbol(pc));
|
| }
|
| RAW_LOG(ERROR, "%s", buffer);
|
| @@ -741,7 +742,7 @@ void HeapProfileTable::Snapshot::ReportObject(const void* ptr,
|
| char* unused) {
|
| // Perhaps also log the allocation stack trace (unsymbolized)
|
| // on this line in case somebody finds it useful.
|
| - RAW_LOG(ERROR, "leaked %"PRIuS" byte object %p", v->bytes, ptr);
|
| + RAW_LOG(ERROR, "leaked %" PRIuS " byte object %p", v->bytes, ptr);
|
| }
|
|
|
| void HeapProfileTable::Snapshot::ReportIndividualObjects() {
|
|
|