mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48:20 +00:00
Cleaned up stats collection.
- Removed the gap_report event. It wasn't used anymore and functionally no more capable that scheduling events and using the get_gap_summary bif. - Added functionality to Dictionaries to count cumulative numbers of inserts performed. This is further used to measure the total number of connections of various types. Previously only the number of active connections was available. - The Reassembler base class now tracks active reassembly size for all subclasses (File/TCP/Frag & unknown). - Improvements to the stats.log. Mostly, more information.
This commit is contained in:
parent
374e61ee20
commit
2b0a28686a
14 changed files with 189 additions and 117 deletions
|
@ -71,6 +71,12 @@ public:
|
|||
max_num_entries + max_num_entries2 : max_num_entries;
|
||||
}
|
||||
|
||||
// Total number of entries ever.
|
||||
uint64 NumCumulativeInserts() const
|
||||
{
|
||||
return cumulative_entries;
|
||||
}
|
||||
|
||||
// True if the dictionary is ordered, false otherwise.
|
||||
int IsOrdered() const { return order != 0; }
|
||||
|
||||
|
@ -166,6 +172,7 @@ private:
|
|||
int num_buckets;
|
||||
int num_entries;
|
||||
int max_num_entries;
|
||||
uint64 cumulative_entries;
|
||||
double den_thresh;
|
||||
int thresh_entries;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue