[PATCH] D114286: [memprof] Extend llvm-profdata to display MemProf profile summaries.
Snehasish Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 19 14:14:52 PST 2021
snehasish created this revision.
snehasish added reviewers: davidxl, tejohnson.
Herald added subscribers: hiraditya, mgorny.
snehasish requested review of this revision.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.
This commit adds initial support to llvm-profdata to read and print
summaries of raw memprof profiles.
Summary of changes:
- Refactor shared defs to MemProfData.inc
- Extend show_main to display memprof profile summaries.
- Add a simple raw memprof profile reader.
- Add a couple of tests to tools/llvm-profdata.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D114286
Files:
compiler-rt/include/CMakeLists.txt
compiler-rt/include/profile/MemProfData.inc
compiler-rt/lib/memprof/CMakeLists.txt
compiler-rt/lib/memprof/memprof_rawprofile.cpp
compiler-rt/lib/memprof/memprof_rawprofile.h
llvm/include/llvm/ProfileData/MemProfData.inc
llvm/include/llvm/ProfileData/RawMemProfReader.h
llvm/lib/ProfileData/CMakeLists.txt
llvm/lib/ProfileData/RawMemProfReader.cpp
llvm/test/tools/llvm-profdata/Inputs/basic.memprofraw
llvm/test/tools/llvm-profdata/Inputs/multi.memprofraw
llvm/test/tools/llvm-profdata/memprof-basic.test
llvm/test/tools/llvm-profdata/memprof-multi.test
llvm/tools/llvm-profdata/llvm-profdata.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114286.388626.patch
Type: text/x-patch
Size: 18961 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211119/d9570b50/attachment.bin>
More information about the llvm-commits
mailing list