Add a test for Dump in tools/deep_memory_profiler/dmprof.py.

BUG=
Count m(un)map per each stacktrace in MemoryRegionMap instead of HeapProfileTable.

This patch fixes a bug that gperftools(TCMalloc)'s "mmap" profiler
(HEAP_PROFILE_MMAP) doesn't hook some memory used by the profiler
itself.

This problem has been lived in gperftools for a long time. Some of
bugs in the mmap profiler were fixed by
https://code.google.com/p/gperftools/issues/detail?id=383,
but the patch didn't fix the bug that the mmap profiler didn't hook
some memory usage by the profiler itself.

This change reverts the previous patch and http://crrev.com/132771
at first. Then, it modifies MemoryRegionMap to count m(un)map
calls per each stacktrace in it instead of merging the counts
per stacktrace in HeapProfileTable.

It cleans up heap-profiler, heap-profile-table and deep-heap-profile
as a side effect.

This patch is planned to be upstreamed to the original gperftools.

BUG=174304

---

Count m(un)map calls per each call stack in MemoryRegionMap instead of merging in HeapProfileTable.

This patch fixes a problem that memory used by the profiler itself cannot be handled @@@.

It removes arenas for mmap profiling which are introduced at http://.... since the dedicated arena is not required.

Also, it cancels the fix introduced in the original gperftools at https://code.google.com/p/gperftools/issues/detail?id=383.  The problem was (in tcmalloc/.../hogehoge.cc) @@@ This problem was actually happening before the patch 383 (it had a bigger bug before 383), but 383 didn't fix this smaller problem

style fix.

Change heap-profile-table.

Fixes.

KOMMENTS

added some.

Use saved_buckets.

handle saved_buckets

HandleSavedBucketsLocked #2

recursive_insert

fixed.

style fixes.

Fixed much for deep-heap-profile.

local change

Fixes for unhooked.

Switch to use MemoryRegionMap in SnapshotProcMaps.

Removed unnecessary code.

hoge

hoge

hoge

comments
Log "absent".
Addressing Jim's comments.