[memprof] Update summary output.
authorSnehasish Kumar <snehasishk@google.com>
Wed, 1 Jun 2022 22:20:53 +0000 (22:20 +0000)
committerSnehasish Kumar <snehasishk@google.com>
Thu, 2 Jun 2022 02:15:42 +0000 (02:15 +0000)
commit962db7de84d47b0aa461884f3f72844ef9a3f216
treeca8319998580ef45dc209d2904dbaf0e08878e63
parentfe0f2c1e9967030dbe70f95c72f310211caf4668
[memprof] Update summary output.

Update the YAML format print out of the profile to include a summary
instead of displaying the headers in the raw file buffer. This allows us
to release the raw buffer early saving memory.

Reviewed By: tejohnson

Differential Revision: https://reviews.llvm.org/D126834
llvm/include/llvm/ProfileData/RawMemProfReader.h
llvm/lib/ProfileData/RawMemProfReader.cpp
llvm/test/tools/llvm-profdata/memprof-basic.test
llvm/test/tools/llvm-profdata/memprof-inline.test
llvm/test/tools/llvm-profdata/memprof-multi.test