tcmalloc: compile heap profiler code only when explicitly requested
Conditionally compile the heap profiler code and its dependencies when enable_profiling is set to true. This removes 9 static initializers in memory_region_map.cc with the new tcmalloc in release builds. BUG=b:119055819 TEST=Unit tests pass Change-Id: I99adbf662d97f40304e698661506ad0d2c066d79 Reviewed-on: https://chromium-review.googlesource.com/c/1464324 Commit-Queue: Gabriel Marin <gmx@chromium.org> Reviewed-by:Will Harris <wfh@chromium.org> Cr-Commit-Position: refs/heads/master@{#636570}
Showing
Please register or sign in to comment