Reduce statistical heap sampling memory overhead.

If the mean heap sampling interval is larger than one page, simulate
sampled small objects with large objects.  This allows profiling context
pointers to be omitted for small objects.  As a result, the memory
overhead for sampling decreases as the sampling interval is increased.

Fix a compilation error in the profiling code.
7 files changed
tree: b9a38932d7bf3ed9ff232c3f7d8e88b0305b29d1
  1. jemalloc/
  2. .gitignore