Source code information is still saved by default with this patch, developers
will have to set the flag to false manually to remove this information.
The current implementation removes only the function and line numbers from
the FROM_HERE macro when the flag is turned off. The file name will be
removed in a later pass when the heap profiler is updated.
The hash and comparison functions have been updated to compare only the PC
and not the file and line number since the source information will not
necessarily be available. This should be unique and is also faster to
compare. The tracked object unittests that relied on this were updated to
use non-null addresses.
Minor updates to Location to convert the explicit hash functor to a C++11
compatible hash function.
Design doc: https://docs.google.com/document/d/1cibE5nAG9sdjVMfs-MkvrMtp43i9MLGqM_uNusLqiBY
Some missing PPAPI deps on base were added that caused location.h to be
included without generating the required buildflag header.
TBR=thakis (reland with trivial fixes)
Reland of https://chromium-review.googlesource.com/c/chromium/src/+/641913
Bug: 760702
Change-Id: I54de9af59cbd12283073d419516c8420a6d3797c
Reviewed-on: https://chromium-review.googlesource.com/647333
Reviewed-by: Brett Wilson <brettw@chromium.org>
Cr-Commit-Position: refs/heads/master@{#499273}