mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
More stats collection extensions.
This commit is contained in:
parent
6d836b7956
commit
3c71d4ffa8
8 changed files with 47 additions and 10 deletions
|
@ -4,6 +4,7 @@
|
|||
#define __PriorityQueue__
|
||||
|
||||
#include <math.h>
|
||||
#include "util.h"
|
||||
|
||||
class PriorityQueue;
|
||||
|
||||
|
@ -53,6 +54,7 @@ public:
|
|||
|
||||
int Size() const { return heap_size; }
|
||||
int PeakSize() const { return peak_heap_size; }
|
||||
uint64 CumulativeNum() const { return cumulative_num; }
|
||||
|
||||
protected:
|
||||
int Resize(int new_size);
|
||||
|
@ -92,6 +94,7 @@ protected:
|
|||
int heap_size;
|
||||
int peak_heap_size;
|
||||
int max_heap_size;
|
||||
uint64 cumulative_num;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue