diff options
author | Snehasish Kumar <snehasishk@google.com> | 2022-05-24 23:58:36 +0000 |
---|---|---|
committer | Snehasish Kumar <snehasishk@google.com> | 2022-05-25 21:17:44 +0000 |
commit | ec51971eae02a031bbfd992cf59e1f6acdadbeeb (patch) | |
tree | f45cdb4dad95b93f28beca6d8f05ae3179d64d5c /llvm/tools/llvm-profdata/llvm-profdata.cpp | |
parent | 10f41a214767219ef369b217f685eb545b80e386 (diff) | |
download | llvm-ec51971eae02a031bbfd992cf59e1f6acdadbeeb.zip llvm-ec51971eae02a031bbfd992cf59e1f6acdadbeeb.tar.gz llvm-ec51971eae02a031bbfd992cf59e1f6acdadbeeb.tar.bz2 |
[memprof] Keep and display symbol names in the RawMemProfReader.
Extend the Frame struct to hold the symbol name if requested
when a RawMemProfReader object is constructed. This change updates the
tests and removes the need to pass --debug to obtain the mapping from
GUID to symbol names.
Reviewed By: tejohnson
Differential Revision: https://reviews.llvm.org/D126344
Diffstat (limited to 'llvm/tools/llvm-profdata/llvm-profdata.cpp')
-rw-r--r-- | llvm/tools/llvm-profdata/llvm-profdata.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-profdata/llvm-profdata.cpp b/llvm/tools/llvm-profdata/llvm-profdata.cpp index ffb64d7..51e3f5e 100644 --- a/llvm/tools/llvm-profdata/llvm-profdata.cpp +++ b/llvm/tools/llvm-profdata/llvm-profdata.cpp @@ -2532,8 +2532,8 @@ static int showSampleProfile(const std::string &Filename, bool ShowCounts, static int showMemProfProfile(const std::string &Filename, const std::string &ProfiledBinary, raw_fd_ostream &OS) { - auto ReaderOr = - llvm::memprof::RawMemProfReader::create(Filename, ProfiledBinary); + auto ReaderOr = llvm::memprof::RawMemProfReader::create( + Filename, ProfiledBinary, /*KeepNames=*/true); if (Error E = ReaderOr.takeError()) // Since the error can be related to the profile or the binary we do not // pass whence. Instead additional context is provided where necessary in |