#include "squid.h"
#include "event.h"
#include "mgr/Registration.h"
#include "profiler/Profiler.h"
#include "SquidMath.h"
#include "Store.h"

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 TimersArray * | xprof_stats_avg1sec = NULL |
static TimersArray * | xprof_stats_avg5sec = NULL |
static TimersArray * | xprof_stats_avg30sec = NULL |
static TimersArray * | xprof_stats_avg1min = NULL |
static TimersArray * | xprof_stats_avg5min = NULL |
static TimersArray * | xprof_stats_avg30min = NULL |
static TimersArray * | xprof_stats_avg1hour = NULL |
static TimersArray * | xprof_stats_avg5hour = NULL |
static TimersArray * | xprof_stats_avg24hour = NULL |
static xprof_stats_node * | sortlist [XPROF_LAST+2] |
static double | time_frame |
static hrtime_t | now |
Macro Definition Documentation
◆ MAX_SORTLIST
#define MAX_SORTLIST 200 |
Definition at line 23 of file ProfStats.cc.
Function Documentation
◆ xprof_average()
|
static |
Definition at line 159 of file ProfStats.cc.
References head, now, xcalloc(), xprof_delta, xprof_events, XPROF_LAST, xprof_move(), xprof_reset(), and xprof_Timers.
Referenced by xprof_event().
◆ xprof_chk_overhead()
|
inlinestatic |
Definition at line 239 of file ProfStats.cc.
References PROF_start, and PROF_stop.
Referenced by xprof_event().
◆ xprof_comp()
|
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().
◆ xprof_event()
void xprof_event | ( | void * | data | ) |
Definition at line 270 of file ProfStats.cc.
References eventAdd(), now, NULL, xprof_average(), xprof_average_delta, xprof_chk_overhead(), xprof_delta, xprof_events, xprof_Init(), xprof_start_t, xprof_stats_avg1hour, xprof_stats_avg1min, xprof_stats_avg1sec, xprof_stats_avg24hour, xprof_stats_avg30min, xprof_stats_avg30sec, xprof_stats_avg5hour, xprof_stats_avg5min, and xprof_stats_avg5sec.
Referenced by mainInitialize().
◆ xprof_Init()
|
static |
Definition at line 257 of file ProfStats.cc.
References now, xprof_delta, xprof_inited, xprof_start_t, xprof_verystart, and xprofRegisterWithCacheManager().
Referenced by xprof_event().
◆ xprof_move()
|
static |
◆ xprof_reset()
|
static |
Definition at line 47 of file ProfStats.cc.
References head, and XP_NOBEST.
Referenced by xprof_average(), and xprof_summary_item().
◆ xprof_show_item()
|
static |
Definition at line 92 of file ProfStats.cc.
References _xprof_stats_data::best, _xprof_stats_data::count, _xprof_stats_data::delta, Math::doublePercent(), PRIu64, storeAppendPrintf(), _xprof_stats_data::summ, time_frame, _xprof_stats_data::worst, and XP_NOBEST.
Referenced by xprof_summary_item().
◆ xprof_sorthist()
|
static |
Definition at line 80 of file ProfStats.cc.
References sortlist, xprof_comp(), XPROF_LAST, and XPROF_PROF_UNACCOUNTED.
Referenced by xprof_summary_item().
◆ xprof_summary()
|
static |
Definition at line 211 of file ProfStats.cc.
References now, PRIu64, storeAppendPrintf(), xprof_average_delta, xprof_delta, xprof_events, xprof_stats_avg1hour, xprof_stats_avg1min, xprof_stats_avg1sec, xprof_stats_avg24hour, xprof_stats_avg30min, xprof_stats_avg30sec, xprof_stats_avg5hour, xprof_stats_avg5min, xprof_stats_avg5sec, xprof_summary_item(), and xprof_verystart.
Referenced by xprofRegisterWithCacheManager().
◆ xprof_summary_item()
|
static |
Definition at line 107 of file ProfStats.cc.
References _xprof_stats_node::accu, _xprof_stats_data::best, _xprof_stats_data::count, _xprof_stats_data::delta, _xprof_stats_node::hist, PRIu64, sortlist, storeAppendPrintf(), _xprof_stats_data::summ, time_frame, Totals, _xprof_stats_data::worst, XP_NOBEST, xprof_average_delta, XPROF_LAST, xprof_reset(), xprof_show_item(), and xprof_sorthist().
Referenced by xprof_summary().
◆ xprofRegisterWithCacheManager()
|
static |
Definition at line 248 of file ProfStats.cc.
References Mgr::RegisterAction(), and xprof_summary().
Referenced by xprof_Init().
Variable Documentation
◆ now
|
static |
Definition at line 253 of file ProfStats.cc.
Referenced by ConservativeTimer::expired(), LogTime(), main(), main_loop(), processActivity(), Icmp4::Recv(), Icmp6::Recv(), session_login(), time_since(), vlog(), xprof_average(), xprof_event(), xprof_Init(), and xprof_summary().
◆ sortlist
|
static |
Definition at line 43 of file ProfStats.cc.
Referenced by xprof_sorthist(), and xprof_summary_item().
◆ time_frame
|
static |
Definition at line 89 of file ProfStats.cc.
Referenced by xprof_show_item(), and xprof_summary_item().
◆ Totals
|
static |
Definition at line 31 of file ProfStats.cc.
Referenced by xprof_summary_item().
◆ xprof_average_delta
|
static |
Definition at line 28 of file ProfStats.cc.
Referenced by xprof_event(), xprof_summary(), and xprof_summary_item().
◆ xprof_delta
|
static |
Definition at line 25 of file ProfStats.cc.
Referenced by xprof_average(), xprof_event(), xprof_Init(), and xprof_summary().
◆ xprof_events
|
static |
Definition at line 29 of file ProfStats.cc.
Referenced by xprof_average(), xprof_event(), and xprof_summary().
◆ xprof_inited
|
static |
Definition at line 30 of file ProfStats.cc.
Referenced by xprof_Init().
◆ xprof_start_t
|
static |
Definition at line 26 of file ProfStats.cc.
Referenced by xprof_event(), and xprof_Init().
◆ xprof_stats_avg1hour
|
static |
Definition at line 39 of file ProfStats.cc.
Referenced by xprof_event(), and xprof_summary().
◆ xprof_stats_avg1min
|
static |
Definition at line 36 of file ProfStats.cc.
Referenced by xprof_event(), and xprof_summary().
◆ xprof_stats_avg1sec
|
static |
Definition at line 33 of file ProfStats.cc.
Referenced by xprof_event(), and xprof_summary().
◆ xprof_stats_avg24hour
|
static |
Definition at line 41 of file ProfStats.cc.
Referenced by xprof_event(), and xprof_summary().
◆ xprof_stats_avg30min
|
static |
Definition at line 38 of file ProfStats.cc.
Referenced by xprof_event(), and xprof_summary().
◆ xprof_stats_avg30sec
|
static |
Definition at line 35 of file ProfStats.cc.
Referenced by xprof_event(), and xprof_summary().
◆ xprof_stats_avg5hour
|
static |
Definition at line 40 of file ProfStats.cc.
Referenced by xprof_event(), and xprof_summary().
◆ xprof_stats_avg5min
|
static |
Definition at line 37 of file ProfStats.cc.
Referenced by xprof_event(), and xprof_summary().
◆ xprof_stats_avg5sec
|
static |
Definition at line 34 of file ProfStats.cc.
Referenced by xprof_event(), and xprof_summary().
◆ xprof_verystart
|
static |
Definition at line 27 of file ProfStats.cc.
Referenced by xprof_Init(), and xprof_summary().