![]() |
The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
#include <freeradius-devel/server/client.h>#include <freeradius-devel/util/misc.h>#include <freeradius-devel/radius/defs.h>
Include dependency graph for stats.c:Go to the source code of this file.
Macros | |
| #define | EMA_SCALE (100) |
| #define | F_EMA_SCALE (1000000) |
| #define | FR_STATS_INIT |
| #define | INC_ACCT(_x) do { radius_acct_stats._x++;request->client->acct._x++; } while (0) |
| #define | INC_AUTH(_x) do { radius_auth_stats._x++;request->client->auth._x++; } while (0) |
Functions | |
| void | fr_stats_bins (fr_stats_t *stats, fr_time_t start, fr_time_t end) |
| Sort latency times into bins. | |
| void | request_stats_final (request_t *request) |
Variables | |
| fr_stats_t | radius_acct_stats = FR_STATS_INIT |
| fr_stats_t | radius_auth_stats = FR_STATS_INIT |
| #define FR_STATS_INIT |
| void fr_stats_bins | ( | fr_stats_t * | stats, |
| fr_time_t | start, | ||
| fr_time_t | end | ||
| ) |
Sort latency times into bins.
This solves the problem of attempting to keep min/max/avg latencies, whilst not knowing what the polling frequency will be.
| [out] | stats | Holding monotonically increasing stats bins. |
| [in] | start | of the request. |
| [in] | end | of the request. |
Definition at line 151 of file stats.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void request_stats_final | ( | request_t * | request | ) |
| fr_stats_t radius_acct_stats = FR_STATS_INIT |
| fr_stats_t radius_auth_stats = FR_STATS_INIT |
1.9.8