Navigation


Changeset 1060:13fc3fc9c789 in freeDiameter for include


Ignore:
Timestamp:
Apr 29, 2013, 6:15:34 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

New feature in fd_fifo to get timing statistics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r1052 r1060  
    30373037 *  queue       : The queue from which to retrieve the number of elements.
    30383038 *  length      : Upon success, the current number of elements in the queue is stored here.
     3039 *  max         : the maximum number of elements as specified during creation. Can be NULL.
    30393040 *
    30403041 * DESCRIPTION:
     
    30453046 *  EINVAL      : A parameter is invalid.
    30463047 */
    3047 int fd_fifo_length ( struct fifo * queue, int * length );
     3048int fd_fifo_length ( struct fifo * queue, int * length, int * max);
    30483049int fd_fifo_length_noerr ( struct fifo * queue ); /* no error checking version */
     3050
     3051/*
     3052 * FUNCTION:    fd_fifo_getstats
     3053 *
     3054 * PARAMETERS:
     3055 *  queue       : The queue from which to retrieve the timings information.
     3056 *  total       : Cumulated time all items spent in this queue, including blocking time (always growing, use deltas for monitoring)
     3057 *  blocking    : Cumulated time threads trying to post new items were blocked (queue full).
     3058 *  last        : For the last element retrieved from the queue, how long it take between posting (including blocking) and poping
     3059 * 
     3060 * DESCRIPTION:
     3061 *  Retrieve the timing information associated with a queue, for monitoring purpose.
     3062 *
     3063 * RETURN VALUE:
     3064 *  0           : The statistics have been updated.
     3065 *  EINVAL      : A parameter is invalid.
     3066 */
     3067int fd_fifo_getstats( struct fifo * queue, struct timespec * total, struct timespec * blocking, struct timespec * last);
     3068
    30493069
    30503070/*
Note: See TracChangeset for help on using the changeset viewer.