-
- Downloads
[memprof] Deduplicate and outline frame storage in the memprof profile.
The current implementation of memprof information in the indexed profile format stores the representation of each calling context fram inline. This patch uses an interned representation where the frame contents are stored in a separate on-disk hash table. The table is indexed via a hash of the contents of the frame. With this patch, the compressed size of a large memprof profile reduces by ~22%. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D123094
Showing
- llvm/include/llvm/ProfileData/InstrProfReader.h 10 additions, 7 deletionsllvm/include/llvm/ProfileData/InstrProfReader.h
- llvm/include/llvm/ProfileData/InstrProfWriter.h 14 additions, 4 deletionsllvm/include/llvm/ProfileData/InstrProfWriter.h
- llvm/include/llvm/ProfileData/MemProf.h 316 additions, 155 deletionsllvm/include/llvm/ProfileData/MemProf.h
- llvm/include/llvm/ProfileData/RawMemProfReader.h 22 additions, 4 deletionsllvm/include/llvm/ProfileData/RawMemProfReader.h
- llvm/lib/ProfileData/InstrProfReader.cpp 45 additions, 10 deletionsllvm/lib/ProfileData/InstrProfReader.cpp
- llvm/lib/ProfileData/InstrProfWriter.cpp 68 additions, 21 deletionsllvm/lib/ProfileData/InstrProfWriter.cpp
- llvm/lib/ProfileData/MemProf.cpp 19 additions, 18 deletionsllvm/lib/ProfileData/MemProf.cpp
- llvm/lib/ProfileData/RawMemProfReader.cpp 30 additions, 20 deletionsllvm/lib/ProfileData/RawMemProfReader.cpp
- llvm/tools/llvm-profdata/llvm-profdata.cpp 19 additions, 6 deletionsllvm/tools/llvm-profdata/llvm-profdata.cpp
- llvm/unittests/ProfileData/InstrProfTest.cpp 141 additions, 28 deletionsllvm/unittests/ProfileData/InstrProfTest.cpp
- llvm/unittests/ProfileData/MemProfTest.cpp 18 additions, 31 deletionsllvm/unittests/ProfileData/MemProfTest.cpp
Loading
Please register or sign in to comment