mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-30 19:47:43 +03:00
hsbench: add CSV dump support
This commit is contained in:
committed by
Konstantinos Margaritis
parent
87413fbff0
commit
7d21fc157c
@@ -276,6 +276,17 @@ void EngineHyperscan::printStats() const {
|
||||
#endif
|
||||
}
|
||||
|
||||
void EngineHyperscan::printCsvStats() const {
|
||||
printf(",\"%s\"", compile_stats.signatures.c_str());
|
||||
printf(",\"%zu\"", compile_stats.expressionCount);
|
||||
printf(",\"0x%x\"", compile_stats.crc32);
|
||||
printf(",\"%zu\"", compile_stats.compiledSize);
|
||||
printf(",\"%zu\"", compile_stats.streamSize);
|
||||
printf(",\"%zu\"", compile_stats.scratchSize);
|
||||
printf(",\"%0.3Lf\"", compile_stats.compileSecs);
|
||||
printf(",\"%u\"", compile_stats.peakMemorySize);
|
||||
}
|
||||
|
||||
void EngineHyperscan::sqlStats(SqlDB &sqldb) const {
|
||||
ostringstream crc;
|
||||
crc << "0x" << hex << compile_stats.crc32;
|
||||
|
Reference in New Issue
Block a user