Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: third_party/tcmalloc/chromium/src/deep-heap-profile.cc

Issue 15511005: Breakdown "unhooked" memory regions by VMA pathnames and permissions. (Closed) Base URL: git@github.com:dmikurube/chromium.git@work
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/tcmalloc/chromium/src/deep-heap-profile.cc
diff --git a/third_party/tcmalloc/chromium/src/deep-heap-profile.cc b/third_party/tcmalloc/chromium/src/deep-heap-profile.cc
index f89d8ce90e3c7d8f267aa2222be281cb9319fefa..affded1b1b6fe4f37ce9f4c59728ac9fe83c008d 100644
--- a/third_party/tcmalloc/chromium/src/deep-heap-profile.cc
+++ b/third_party/tcmalloc/chromium/src/deep-heap-profile.cc
@@ -41,15 +41,6 @@ static const char kProcSelfMapsHeader[] = "\nMAPPED_LIBRARIES:\n";
static const char kVirtualLabel[] = "virtual";
static const char kCommittedLabel[] = "committed";
-const char* DeepHeapProfile::kMapsRegionTypeDict[] = {
- "absent",
- "anonymous",
- "file-exec",
- "file-nonexec",
- "stack",
- "other",
-};
-
namespace {
#if defined(__linux__)
@@ -743,8 +734,6 @@ void DeepHeapProfile::GlobalStats::SnapshotMaps(
mmap_dump_buffer->AppendString(" - ", 0);
mmap_dump_buffer->AppendPtr(last_address_of_unhooked + 1, 0);
mmap_dump_buffer->AppendString(" unhooked ", 0);
- mmap_dump_buffer->AppendString(kMapsRegionTypeDict[type], 0);
- mmap_dump_buffer->AppendString(" ", 0);
mmap_dump_buffer->AppendInt64(committed_size, 0);
mmap_dump_buffer->AppendString(" / ", 0);
mmap_dump_buffer->AppendInt64(
@@ -778,8 +767,6 @@ void DeepHeapProfile::GlobalStats::SnapshotMaps(
mmap_dump_buffer->AppendPtr(mmap_iter->end_addr, 0);
mmap_dump_buffer->AppendString(continued ? ")" : " ", 0);
mmap_dump_buffer->AppendString(" hooked ", 0);
- mmap_dump_buffer->AppendString(kMapsRegionTypeDict[type], 0);
- mmap_dump_buffer->AppendString(" ", 0);
mmap_dump_buffer->AppendInt64(committed_size, 0);
mmap_dump_buffer->AppendString(" / ", 0);
mmap_dump_buffer->AppendInt64(
« no previous file with comments | « no previous file | tools/deep_memory_profiler/dmprof.py » ('j') | tools/deep_memory_profiler/policy.android.browser.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698