Chromium Code Reviews| Index: third_party/tcmalloc/chromium/src/malloc_hook.cc |
| diff --git a/third_party/tcmalloc/chromium/src/malloc_hook.cc b/third_party/tcmalloc/chromium/src/malloc_hook.cc |
| index f6af7d816179e91afabcc6838ad5fbb99ec1791e..d7afee38a7f0b34d10054331f34dd91c502df143 100644 |
| --- a/third_party/tcmalloc/chromium/src/malloc_hook.cc |
| +++ b/third_party/tcmalloc/chromium/src/malloc_hook.cc |
| @@ -677,7 +677,9 @@ extern "C" int MallocHook_GetCallerStackTrace(void** result, int max_depth, |
| if (InHookCaller(stack[i])) { |
| RAW_VLOG(10, "Found hooked allocator at %d: %p <- %p", |
| i, stack[i], stack[i+1]); |
| - i += 1; // skip hook caller frame |
| + // i += 1; // skip hook caller frame |
|
Alexander Potapenko
2011/12/20 13:57:23
Please add an "if FLAG_deep_profile..." here inste
Dai Mikurube (NOT FULLTIME)
2011/12/21 09:13:49
Done.
|
| + // In deep profiler, we want to know the caller frame to |
| + // distinguish mmap from tcmalloc |
| depth -= i; // correct depth |
| if (depth > max_depth) depth = max_depth; |
| copy(stack + i, stack + i + depth, result); |