[HIPIFY] Statistics to CSV file dumping revise

+ Add option -print-stats-csv to dump statistics to CSV file
+ If -o-dir is specified, CSV file will be dumped there
+ Generate 1 summary file sum_stat.csv in case of multiple sources
This commit is contained in:
Evgeny Mankov
2019-07-07 20:55:17 +03:00
parent f3bbad0716
commit 60a9143d6d
3 changed files with 31 additions and 1 deletions
+5
View File
@@ -104,6 +104,11 @@ cl::opt<bool> PrintStats("print-stats",
cl::value_desc("print-stats"),
cl::cat(ToolTemplateCategory));
cl::opt<bool> PrintStatsCSV("print-stats-csv",
cl::desc("Print translation statistics in CSV file"),
cl::value_desc("print-stats-csv"),
cl::cat(ToolTemplateCategory));
cl::opt<std::string> OutputStatsFilename("o-stats",
cl::desc("Output filename for statistics"),
cl::value_desc("filename"),