[BOLT] Print program stats in perf2bolt/aggregate-only mode (#89763)
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "bolt/Profile/DataAggregator.h"
|
||||
#include "bolt/Core/BinaryContext.h"
|
||||
#include "bolt/Core/BinaryFunction.h"
|
||||
#include "bolt/Passes/BinaryPasses.h"
|
||||
#include "bolt/Profile/BoltAddressTranslation.h"
|
||||
#include "bolt/Profile/Heatmap.h"
|
||||
#include "bolt/Profile/YAMLProfileWriter.h"
|
||||
@@ -611,6 +612,7 @@ Error DataAggregator::readProfile(BinaryContext &BC) {
|
||||
if (std::error_code EC = writeBATYAML(BC, opts::SaveProfile))
|
||||
report_error("cannot create output data file", EC);
|
||||
}
|
||||
BC.logBOLTErrorsAndQuitOnFatal(PrintProgramStats().runOnFunctions(BC));
|
||||
}
|
||||
|
||||
return Error::success();
|
||||
|
||||
Reference in New Issue
Block a user