Zeek Statistics

- Added statistics hook
- Fixed rlimit usage
- Removed POpen for windows implementation layer
- Completed statistics plugin
This commit is contained in:
Elad Solomon 2021-09-12 12:19:46 +00:00 committed by Tomer Lev
parent fbf5b68d6f
commit c3b9756576
8 changed files with 135 additions and 0 deletions

View file

@ -792,6 +792,17 @@ type ReporterStats: record {
weirds_by_type: table[string] of count;
};
## Statistics about how many times each event name is queued.
##
## .. zeek:see:: Statistics::get_and_reset_event_name_statistics
type EventNameCounter: record {
## Name of the zeek event.
name: string &log;
## Times it was queued, as captured by event hook.
times_queued: count &log;
} &log;
type EventNameStats: vector of EventNameCounter;
## Table type used to map variable names to their memory allocation.
##
## .. todo:: We need this type definition only for declaring builtin functions