Patricia tree, Ahocarasick automa, LRU cache: add statistics (#1683)
Add (basic) internal stats to the main data structures used by the
library; they might be usefull to check how effective these structures
are.
Add an option to `ndpiReader` to dump them; enabled by default in the
unit tests.
This new option enables/disables dumping of "num dissectors calls"
values, too (see b4cb14ec).
This commit is contained in:
@@ -6,6 +6,21 @@ DPI Packets (other): 4 (1.00 pkts/flow)
|
||||
Confidence Match by IP : 3 (flows)
|
||||
Confidence DPI : 60 (flows)
|
||||
Num dissector calls: 280 (4.44 diss/flow)
|
||||
LRU cache ookla: 0/0/0 (insert/search/found)
|
||||
LRU cache bittorrent: 0/0/0 (insert/search/found)
|
||||
LRU cache zoom: 0/0/0 (insert/search/found)
|
||||
LRU cache stun: 0/0/0 (insert/search/found)
|
||||
LRU cache tls_cert: 0/0/0 (insert/search/found)
|
||||
LRU cache mining: 0/0/0 (insert/search/found)
|
||||
LRU cache msteams: 0/0/0 (insert/search/found)
|
||||
Automa host: 92/80 (search/found)
|
||||
Automa domain: 66/0 (search/found)
|
||||
Automa tls cert: 0/0 (search/found)
|
||||
Automa risk mask: 5/0 (search/found)
|
||||
Automa common alpns: 4/4 (search/found)
|
||||
Patricia risk mask: 104/0 (search/found)
|
||||
Patricia risk: 2/0 (search/found)
|
||||
Patricia protocols: 178/58 (search/found)
|
||||
|
||||
DNS 4 390 2
|
||||
MDNS 2 174 2
|
||||
|
||||
Reference in New Issue
Block a user