Add a MemProfReader base class which can be used directly where
symbolization and processing a raw profile is unnecessary.
Details
- Reviewers
tejohnson - Commits
- rG37fd3c96b917: [memprof] Add a MemProfReader base class.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
| Time | Test | |
|---|---|---|
| 60,030 ms | x64 debian > MLIR.Examples/standalone::test.toy |
Event Timeline
Should there be a test to cover the new base class? In particular the constructor isn't called and the readNextRecord with a null Callback case.
| llvm/include/llvm/ProfileData/RawMemProfReader.h | ||
|---|---|---|
| 69 | nit: I think the braces can be removed in this case | |
| 86 | I don't see this constructor being called anywhere in this patch? | |
| 146 | Should this call the base class constructor? | |
Added a test which uses the constructor and relies on the default null Callback behaviour.
| llvm/include/llvm/ProfileData/RawMemProfReader.h | ||
|---|---|---|
| 86 | Added a test which uses this constructor. | |
| 146 | No we can't call the base class constructor from here since we need to do additional processing (symbolizeAndFilterStackFrames and mapRawProfileToRecords) before populating the function profile data structure. | |
nit: I think the braces can be removed in this case