mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
Continued stats cleanup and extension.
This commit is contained in:
parent
3c71d4ffa8
commit
cfdabb901f
9 changed files with 59 additions and 61 deletions
|
@ -502,8 +502,8 @@ type ProcStats: record {
|
|||
};
|
||||
|
||||
type EventStats: record {
|
||||
num_events_queued: count; ##< Total number of events queued so far.
|
||||
num_events_dispatched: count; ##< Total number of events dispatched so far.
|
||||
queued: count; ##< Total number of events queued so far.
|
||||
dispatched: count; ##< Total number of events dispatched so far.
|
||||
};
|
||||
|
||||
## Summary statistics of all regular expression matchers.
|
||||
|
@ -520,13 +520,13 @@ type ReassemblerStats: record {
|
|||
##
|
||||
## .. bro:see:: get_matcher_stats
|
||||
type MatcherStats: record {
|
||||
matchers: count; ##< Number of distinct RE matchers.
|
||||
dfa_states: count; ##< Number of DFA states across all matchers.
|
||||
computed: count; ##< Number of computed DFA state transitions.
|
||||
mem: count; ##< Number of bytes used by DFA states.
|
||||
hits: count; ##< Number of cache hits.
|
||||
misses: count; ##< Number of cache misses.
|
||||
avg_nfa_states: count; ##< Average number of NFA states across all matchers.
|
||||
matchers: count; ##< Number of distinct RE matchers.
|
||||
nfa_states: count; ##< Number of NFA states across all matchers.
|
||||
dfa_states: count; ##< Number of DFA states across all matchers.
|
||||
computed: count; ##< Number of computed DFA state transitions.
|
||||
mem: count; ##< Number of bytes used by DFA states.
|
||||
hits: count; ##< Number of cache hits.
|
||||
misses: count; ##< Number of cache misses.
|
||||
};
|
||||
|
||||
type TimerStats: record {
|
||||
|
@ -560,10 +560,6 @@ type GapStats: record {
|
|||
gap_bytes: count; ##< How many bytes were missing in the gaps.
|
||||
};
|
||||
|
||||
type PatternStats: record {
|
||||
|
||||
};
|
||||
|
||||
type ThreadStats: record {
|
||||
num_threads: count;
|
||||
};
|
||||
|
|
|
@ -117,8 +117,8 @@ event check_stats(then: time, last_ns: NetStats, last_cs: ConnStats, last_ps: Pr
|
|||
$reassem_frag_size=rs$frag_size,
|
||||
$reassem_unknown_size=rs$unknown_size,
|
||||
|
||||
$events_proc=es$num_events_dispatched - last_es$num_events_dispatched,
|
||||
$events_queued=es$num_events_queued - last_es$num_events_queued,
|
||||
$events_proc=es$dispatched - last_es$dispatched,
|
||||
$events_queued=es$queued - last_es$queued,
|
||||
|
||||
$timers=ts$cumulative - last_ts$cumulative,
|
||||
$active_timers=ts$current,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue