Update the YAML format print out of the profile to include a summary
instead of displaying the headers in the raw file buffer. This allows us
to release the raw buffer early saving memory.
Details
- Reviewers
tejohnson - Commits
- rG962db7de84d4: [memprof] Update summary output.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I think the 2 changes are unrelated so maybe they should be committed separately? Question below about one piece of info that changed.
llvm/lib/ProfileData/RawMemProfReader.cpp | ||
---|---|---|
217 | It looks like before we printed out the number of MIBs and now we print out the number of functions containing at least one alloc - is that intended? Should we print out both? | |
llvm/test/tools/llvm-profdata/memprof-multi.test | ||
38 | Comment seems stale unless the summary is changed to print number of MIBs again. |
Remove summary changes from this patch.
Add another field which tracks the number of mibs we have.
PTAL, thanks!
llvm/lib/ProfileData/RawMemProfReader.cpp | ||
---|---|---|
217 | Done, extended the logic to print out both. | |
llvm/test/tools/llvm-profdata/memprof-multi.test | ||
38 | Actually, in this case I added additional check lines below to ensure 2 MIBs are printed (symbolname, lineoffset and column). I extended the logic to also track the number of MIBs so that it's clearer. |
It looks like before we printed out the number of MIBs and now we print out the number of functions containing at least one alloc - is that intended? Should we print out both?