mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Add simple profiling class to accumulate Stmt usage stats across runs.
Use the BROFILER_FILE environment variable to point to a file in which Stmt usage statistics from Bro script-layer can be output. This should be able to be used to check Bro script coverage that that e.g. the entire test suite covers.
This commit is contained in:
parent
c8839da069
commit
8f8290c852
8 changed files with 181 additions and 1 deletions
|
@ -258,6 +258,7 @@ static BroFile* print_stdout = 0;
|
|||
|
||||
Val* PrintStmt::DoExec(val_list* vals, stmt_flow_type& /* flow */) const
|
||||
{
|
||||
RegisterAccess();
|
||||
if ( ! print_stdout )
|
||||
print_stdout = new BroFile(stdout);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue