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:
Jon Siwek 2011-11-27 15:57:18 -06:00
parent c8839da069
commit 8f8290c852
8 changed files with 181 additions and 1 deletions

View file

@ -52,6 +52,7 @@ public:
void RegisterAccess() const { last_access = network_time; access_count++; }
void AccessStats(ODesc* d) const;
uint32 GetAccessCount() const { return access_count; }
virtual void Describe(ODesc* d) const;