Mercurial > hg > freeDiameter
diff include/freeDiameter/libfdcore.h @ 1067:23989d6c8390
Add total count in the statistics of the queues, thanks for the feedback :)
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Tue, 30 Apr 2013 09:51:09 +0800 |
parents | 7a7f63f6f135 |
children | 544fa1be79a9 |
line wrap: on
line diff
--- a/include/freeDiameter/libfdcore.h Mon Apr 29 13:31:31 2013 +0200 +++ b/include/freeDiameter/libfdcore.h Tue Apr 30 09:51:09 2013 +0800 @@ -1025,6 +1025,7 @@ * len : (out) The number of items in the queue currently * max : (out) The max number of items the queue accepts before becoming blocking -- 0 means no max. * highest_count : (out) The highest count the queue has reached since startup + * total_count : (out) Total number of items that this queue has processed (always growing, use deltas for monitoring) * total : (out) Cumulated time all items spent in this queue, including blocking time (always growing, use deltas for monitoring) * blocking : (out) Cumulated time threads trying to post new items were blocked (queue full). * last : (out) For the last element retrieved from the queue, how long it took between posting (including blocking) and poping @@ -1038,7 +1039,7 @@ * EINVAL : A parameter is invalid. */ int fd_stat_getstats(enum fd_stat_type stat, struct peer_hdr * peer, - int * len, int * max, int * highest_count, + int * len, int * max, int * highest_count, long long * total_count, struct timespec * total, struct timespec * blocking, struct timespec * last); #ifdef __cplusplus