hsbench: add CSV dump support

This commit is contained in:
Wang Xiang W
2020-04-30 07:37:55 -04:00
committed by Konstantinos Margaritis
parent 87413fbff0
commit 7d21fc157c
8 changed files with 82 additions and 2 deletions

View File

@@ -227,6 +227,15 @@ void EnginePCRE::printStats() const {
#endif
}
void EnginePCRE::printCsvStats() const {
printf(",\"%s\"", compile_stats.signatures.c_str());
printf(",\"%zu\"", compile_stats.expressionCount);
printf(",\"%zu\"", compile_stats.compiledSize);
printf(",\"%zu\"", compile_stats.scratchSize);
printf(",\"%0.3Lf\"", compile_stats.compileSecs);
printf(",\"%u\"", compile_stats.peakMemorySize);
}
void EnginePCRE::sqlStats(SqlDB &sqldb) const {
ostringstream crc;