[memprof] Print out the segment information in YAML format.
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:26:39 +0000 (02:26 +0000)
commit8a87f42fc6ca14d13454465490dbf47333918907
tree29ee664699ee3d8a1e8e885754327fa29f982abc
parent058791d8f2d337c9025b4cb6d7518fe6c8706f67
[memprof] Print out the segment information in YAML format.

This change prints out the segment information in the raw profile in
YAML format for testing. Since we don't capture build ids yet, we print
out <None> for now.

Reviewed By: tejohnson

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