Reduces llvm-profdata memory usage on a large profile from 7.8GB to 5.1GB.
This also allows all the errors/warnings to be printed rather than only
the first.
Paths
| Differential D35149
llvm-profdata: Reduce memory usage by using Error callback rather than member ClosedPublic Authored by dblaikie on Jul 7 2017, 2:45 PM.
Details Summary Reduces llvm-profdata memory usage on a large profile from 7.8GB to 5.1GB. This also allows all the errors/warnings to be printed rather than only
Diff Detail
Event TimelineComment Actions It feels weird that the error handling is the first parameter of the interfaces. Also is it possible to provide a default error handling ?
This revision is now accepted and ready to land.Jul 9 2017, 8:00 PM Closed by commit rL307516: llvm-profdata: Reduce memory usage by using Error callback rather than member (authored by dblaikie). · Explain WhyJul 9 2017, 8:05 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 105703 include/llvm/ProfileData/InstrProf.h
include/llvm/ProfileData/InstrProfWriter.h
lib/ProfileData/InstrProf.cpp
lib/ProfileData/InstrProfWriter.cpp
tools/llvm-profdata/llvm-profdata.cpp
unittests/ProfileData/CoverageMappingTest.cpp
unittests/ProfileData/InstrProfTest.cpp
|
It is better to get rid of the default weight and move Warn to be the last here.