Navigation


Changeset 1067:23989d6c8390 in freeDiameter for include


Ignore:
Timestamp:
Apr 30, 2013, 10:51:09 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Add total count in the statistics of the queues, thanks for the feedback :)

Location:
include/freeDiameter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdcore.h

    r1063 r1067  
    10261026 *  max           : (out) The max number of items the queue accepts before becoming blocking -- 0 means no max.
    10271027 *  highest_count : (out) The highest count the queue has reached since startup
     1028 *  total_count   : (out) Total number of items that this queue has processed (always growing, use deltas for monitoring)
    10281029 *  total         : (out) Cumulated time all items spent in this queue, including blocking time (always growing, use deltas for monitoring)
    10291030 *  blocking      : (out) Cumulated time threads trying to post new items were blocked (queue full).
     
    10391040 */
    10401041int fd_stat_getstats(enum fd_stat_type stat, struct peer_hdr * peer,
    1041                         int * len, int * max, int * highest_count,
     1042                        int * len, int * max, int * highest_count, long long * total_count,
    10421043                        struct timespec * total, struct timespec * blocking, struct timespec * last);
    10431044
  • include/freeDiameter/libfdproto.h

    r1060 r1067  
    30543054 * PARAMETERS:
    30553055 *  queue       : The queue from which to retrieve the timings information.
     3056 *  items       : the total number of items that went through the queue (already pop'd). Always increasing.
    30563057 *  total       : Cumulated time all items spent in this queue, including blocking time (always growing, use deltas for monitoring)
    30573058 *  blocking    : Cumulated time threads trying to post new items were blocked (queue full).
     
    30653066 *  EINVAL      : A parameter is invalid.
    30663067 */
    3067 int fd_fifo_getstats( struct fifo * queue, struct timespec * total, struct timespec * blocking, struct timespec * last);
     3068int fd_fifo_getstats( struct fifo * queue, long long *items, struct timespec * total, struct timespec * blocking, struct timespec * last);
    30683069
    30693070
Note: See TracChangeset for help on using the changeset viewer.