ProfStats.cc File Reference
#include "squid.h"
#include "event.h"
#include "mgr/Registration.h"
#include "profiler/Profiler.h"
#include "SquidMath.h"
#include "Store.h"
Include dependency graph for ProfStats.cc:

Go to the source code of this file.

Macros

#define MAX_SORTLIST   200
 

Functions

static void xprof_summary (StoreEntry *sentry)
 
static void xprof_reset (xprof_stats_data *head)
 
static void xprof_move (xprof_stats_data *head, xprof_stats_data *hist)
 
static int xprof_comp (const void *A, const void *B)
 
static void xprof_sorthist (TimersArray *xprof_list)
 
static void xprof_show_item (StoreEntry *sentry, const char *name, xprof_stats_data *hist)
 
static void xprof_summary_item (StoreEntry *sentry, char const *descr, TimersArray *list)
 
static void xprof_average (TimersArray **list, int secs)
 
static void xprof_chk_overhead (int samples)
 
static void xprofRegisterWithCacheManager (void)
 
static void xprof_Init (void)
 
void xprof_event (void *data)
 

Variables

static hrtime_t xprof_delta = 0
 
static hrtime_t xprof_start_t = 0
 
static hrtime_t xprof_verystart = 0
 
static hrtime_t xprof_average_delta = 0
 
static int xprof_events = 0
 
static int xprof_inited = 0
 
static xprof_stats_data Totals
 
static TimersArrayxprof_stats_avg1sec = NULL
 
static TimersArrayxprof_stats_avg5sec = NULL
 
static TimersArrayxprof_stats_avg30sec = NULL
 
static TimersArrayxprof_stats_avg1min = NULL
 
static TimersArrayxprof_stats_avg5min = NULL
 
static TimersArrayxprof_stats_avg30min = NULL
 
static TimersArrayxprof_stats_avg1hour = NULL
 
static TimersArrayxprof_stats_avg5hour = NULL
 
static TimersArrayxprof_stats_avg24hour = NULL
 
static xprof_stats_nodesortlist [XPROF_LAST+2]
 
static double time_frame
 
static hrtime_t now
 

Macro Definition Documentation

#define MAX_SORTLIST   200

Definition at line 23 of file ProfStats.cc.

Function Documentation

static void xprof_average ( TimersArray **  list,
int  secs 
)
static

Definition at line 159 of file ProfStats.cc.

References head, i, now, xcalloc, xprof_delta, xprof_events, XPROF_LAST, xprof_move(), xprof_reset(), and xprof_Timers.

Referenced by xprof_event().

static void xprof_chk_overhead ( int  samples)
inlinestatic

Definition at line 239 of file ProfStats.cc.

References PROF_start, and PROF_stop.

Referenced by xprof_event().

static int xprof_comp ( const void *  A,
const void *  B 
)
static

Definition at line 65 of file ProfStats.cc.

References A, B, _xprof_stats_node::hist, and _xprof_stats_data::summ.

Referenced by xprof_sorthist().

static void xprof_Init ( void  )
static
static void xprof_move ( xprof_stats_data head,
xprof_stats_data hist 
)
static

Definition at line 59 of file ProfStats.cc.

Referenced by xprof_average().

static void xprof_show_item ( StoreEntry sentry,
const char *  name,
xprof_stats_data hist 
)
static
static void xprof_sorthist ( TimersArray xprof_list)
static

Definition at line 80 of file ProfStats.cc.

References i, xprof_comp(), XPROF_LAST, and XPROF_PROF_UNACCOUNTED.

Referenced by xprof_summary_item().

static void xprofRegisterWithCacheManager ( void  )
static

Definition at line 248 of file ProfStats.cc.

References Mgr::RegisterAction(), and xprof_summary().

Referenced by xprof_Init().

Variable Documentation

xprof_stats_node* sortlist[XPROF_LAST+2]
static

Definition at line 43 of file ProfStats.cc.

double time_frame
static

Definition at line 89 of file ProfStats.cc.

Referenced by xprof_show_item(), and xprof_summary_item().

xprof_stats_data Totals
static

Definition at line 31 of file ProfStats.cc.

hrtime_t xprof_average_delta = 0
static

Definition at line 28 of file ProfStats.cc.

Referenced by xprof_event(), xprof_summary(), and xprof_summary_item().

hrtime_t xprof_delta = 0
static

Definition at line 25 of file ProfStats.cc.

Referenced by xprof_average(), xprof_event(), xprof_Init(), and xprof_summary().

int xprof_events = 0
static

Definition at line 29 of file ProfStats.cc.

Referenced by xprof_average(), xprof_event(), and xprof_summary().

int xprof_inited = 0
static

Definition at line 30 of file ProfStats.cc.

Referenced by xprof_Init().

hrtime_t xprof_start_t = 0
static

Definition at line 26 of file ProfStats.cc.

Referenced by xprof_event(), and xprof_Init().

TimersArray* xprof_stats_avg1hour = NULL
static

Definition at line 39 of file ProfStats.cc.

Referenced by xprof_event(), and xprof_summary().

TimersArray* xprof_stats_avg1min = NULL
static

Definition at line 36 of file ProfStats.cc.

Referenced by xprof_event(), and xprof_summary().

TimersArray* xprof_stats_avg1sec = NULL
static

Definition at line 33 of file ProfStats.cc.

Referenced by xprof_event(), and xprof_summary().

TimersArray* xprof_stats_avg24hour = NULL
static

Definition at line 41 of file ProfStats.cc.

Referenced by xprof_event(), and xprof_summary().

TimersArray* xprof_stats_avg30min = NULL
static

Definition at line 38 of file ProfStats.cc.

Referenced by xprof_event(), and xprof_summary().

TimersArray* xprof_stats_avg30sec = NULL
static

Definition at line 35 of file ProfStats.cc.

Referenced by xprof_event(), and xprof_summary().

TimersArray* xprof_stats_avg5hour = NULL
static

Definition at line 40 of file ProfStats.cc.

Referenced by xprof_event(), and xprof_summary().

TimersArray* xprof_stats_avg5min = NULL
static

Definition at line 37 of file ProfStats.cc.

Referenced by xprof_event(), and xprof_summary().

TimersArray* xprof_stats_avg5sec = NULL
static

Definition at line 34 of file ProfStats.cc.

Referenced by xprof_event(), and xprof_summary().

hrtime_t xprof_verystart = 0
static

Definition at line 27 of file ProfStats.cc.

Referenced by xprof_Init(), and xprof_summary().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors