[all-commits] [llvm/llvm-project] 941191: [llvm-profgen] Refactor and better diagnostics
WenleiHe via All-commits
all-commits at lists.llvm.org
Wed Sep 29 22:56:07 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 941191aae4abaf88b176bec8cfe1c841a5832642
https://github.com/llvm/llvm-project/commit/941191aae4abaf88b176bec8cfe1c841a5832642
Author: Wenlei He <aktoon at gmail.com>
Date: 2021-09-29 (Wed, 29 Sep 2021)
Changed paths:
M llvm/tools/llvm-profgen/PerfReader.cpp
M llvm/tools/llvm-profgen/PerfReader.h
M llvm/tools/llvm-profgen/llvm-profgen.cpp
Log Message:
-----------
[llvm-profgen] Refactor and better diagnostics
This change contains diagnostics improvments, refactoring and preparation for consuming perf data directly.
Diagnostics:
- We now have more detailed diagnostics when no mmap is found.
- We also print warning for abnormal transition to external code.
Refactoring:
- Simplify input perf trace processing to only allow a single input file. This is because 1) using multiple input perf trace (perf script) is error prone because we may miss key mmap events. 2) the functionality is not really being used anyways.
- Make more functions private for Readers, move non-trivial definitions out of header. Cleanup some inconsistency.
- Prepare for consuming perf data as input directly.
Differential Revision: https://reviews.llvm.org/D110729
More information about the All-commits
mailing list