diff options
author | Andrew Sweeney <asweeney86@gmail.com> | 2013-12-30 14:06:20 -0500 |
---|---|---|
committer | Andrew Sweeney <asweeney86@gmail.com> | 2013-12-30 14:06:20 -0500 |
commit | 5173bef50ff8ff389598c8d9301a7b77ffae8315 (patch) | |
tree | 51efafc2bce63fffb0843275a70c48dd26a9bf6c /event-internal.h | |
parent | ccf432b91201afb61b1b015724bcb50245a36eec (diff) | |
download | libevent-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.h | 6 |
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. */ |