summaryrefslogtreecommitdiff
path: root/event-internal.h
diff options
context:
space:
mode:
authorAndrew Sweeney <asweeney86@gmail.com>2013-12-30 14:06:20 -0500
committerAndrew Sweeney <asweeney86@gmail.com>2013-12-30 14:06:20 -0500
commit5173bef50ff8ff389598c8d9301a7b77ffae8315 (patch)
tree51efafc2bce63fffb0843275a70c48dd26a9bf6c /event-internal.h
parentccf432b91201afb61b1b015724bcb50245a36eec (diff)
downloadlibevent-5173bef50ff8ff389598c8d9301a7b77ffae8315.tar.gz
Add access to max event count stats
This commit provides an interface for accessing and resetting the maximum number of events in a given period. This information provides better insight into event queue pressure.
Diffstat (limited to 'event-internal.h')
-rw-r--r--event-internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/event-internal.h b/event-internal.h
index bce96df5..5208fbe0 100644
--- a/event-internal.h
+++ b/event-internal.h
@@ -224,10 +224,16 @@ struct event_base {
/** Number of virtual events */
int virtual_event_count;
+ /** Maximum number of virtual events active */
+ int virtual_event_count_max;
/** Number of total events added to this event_base */
int event_count;
+ /** Maximum number of total events added to this event_base */
+ int event_count_max;
/** Number of total events active in this event_base */
int event_count_active;
+ /** Maximum number of total events active in this event_base */
+ int event_count_active_max;
/** Set if we should terminate the loop once we're done processing
* events. */