ClangBuildAnalyzer icon indicating copy to clipboard operation
ClangBuildAnalyzer copied to clipboard

Is it possible to get tool's output in a machine-readable format (json, csv)?

Open nickaleks opened this issue 4 years ago • 1 comments

This tool was very helpful in optimizing build times. However I would to be able to analyze the output a little more thoroughly. For example, how much time out of total is taken by each header or translation unit. It would greatly help with cost-benefit analysis when attempting any kind of refactoring. To do that I need raw aggregated data of the build analysis. Is it possible to get it from the tool at the moment. If not how hard would it be to add and where to look to do that?

nickaleks avatar Apr 17 '20 08:04 nickaleks

Today there's no output like that indeed. Should not be terribly hard to add, basically you'd need to look at each place where fprintf is done in src/Analysis.cpp, and instead of printing for a human, emit the info in JSON format or somesuch.

aras-p avatar Apr 17 '20 10:04 aras-p