Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 #include "CongestionStats.h"
00032 
00033 void
00034 register_congest_stats()
00035 {
00036 #define CONGEST_CLEAR_DYN_STAT(x) \
00037 do { \
00038         RecSetRawStatSum(congest_rsb, x, 0); \
00039         RecSetRawStatCount(congest_rsb, x, 0); \
00040 } while (0);
00041 
00042   congest_rsb = RecAllocateRawStatBlock((int) congest_num_stats);
00043   RecRegisterRawStat(congest_rsb, RECT_PROCESS,
00044                      "proxy.process.congestion.congested_on_conn_failures",
00045                      RECD_INT, RECP_NON_PERSISTENT, (int) congested_on_F_stat, RecRawStatSyncSum);
00046   CONGEST_CLEAR_DYN_STAT(congested_on_F_stat);
00047 
00048   RecRegisterRawStat(congest_rsb, RECT_PROCESS,
00049                      "proxy.process.congestion.congested_on_max_connection",
00050                      RECD_INT, RECP_NON_PERSISTENT, (int) congested_on_M_stat, RecRawStatSyncSum);
00051   CONGEST_CLEAR_DYN_STAT(congested_on_M_stat);
00052 }