mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
Profiling support for DNS_Mgr and triggers.
With misc/profiling.bro, both now report a line in prof.log with some counters on usage.
This commit is contained in:
parent
bd9c937236
commit
df4a22a27d
6 changed files with 77 additions and 2 deletions
|
@ -67,6 +67,13 @@ public:
|
|||
// Evaluates all queued Triggers.
|
||||
static void EvaluatePending();
|
||||
|
||||
struct Stats {
|
||||
unsigned long total;
|
||||
unsigned long pending;
|
||||
};
|
||||
|
||||
static void GetStats(Stats* stats);
|
||||
|
||||
private:
|
||||
friend class TriggerTraversalCallback;
|
||||
friend class TriggerTimer;
|
||||
|
@ -99,6 +106,8 @@ private:
|
|||
|
||||
typedef list<Trigger*> TriggerList;
|
||||
static TriggerList* pending;
|
||||
|
||||
static unsigned long total_triggers;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue