From c6389cd7052a3ec8bebb56a2a0e00a49ef3987f1 Mon Sep 17 00:00:00 2001 From: rousskov <> Date: Thu, 9 Apr 1998 06:18:21 +0000 Subject: [PATCH] - added more stats into statDigestBlob --- src/stat.cc | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/stat.cc b/src/stat.cc index a3a0aa5aff..377fd18de4 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,6 +1,6 @@ /* - * $Id: stat.cc,v 1.227 1998/04/08 22:51:16 rousskov Exp $ + * $Id: stat.cc,v 1.228 1998/04/09 00:18:21 rousskov Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -1041,6 +1041,14 @@ statDigestBlob(StoreEntry * sentry) StatCounters *l = &CountHist[5]; double x; + storeAppendPrintf(sentry, "client_http.all_svc_time histogram:\n"); + statHistDump(&f->client_http.all_svc_time, sentry, NULL); + storeAppendPrintf(sentry, "client_http.miss_svc_time histogram:\n"); + statHistDump(&f->client_http.miss_svc_time, sentry, NULL); + storeAppendPrintf(sentry, "client_http.nm_svc_time histogram:\n"); + statHistDump(&f->client_http.nm_svc_time, sentry, NULL); + storeAppendPrintf(sentry, "client_http.hit_svc_time histogram:\n"); + statHistDump(&f->client_http.hit_svc_time, sentry, NULL); storeAppendPrintf(sentry, "\nicp.query_svc_time histogram:\n"); statHistDump(&f->icp.query_svc_time, sentry, NULL); storeAppendPrintf(sentry, "\nicp.reply_svc_time histogram:\n"); @@ -1051,6 +1059,18 @@ statDigestBlob(StoreEntry * sentry) statHistDump(&f->cd.client_svc_time, sentry, NULL); storeAppendPrintf(sentry, "\nMedian service times:\n"); + x = statHistDeltaMedian(&l->client_http.all_svc_time, + &f->client_http.all_svc_time); + storeAppendPrintf(sentry, "client_http.all_median_svc_time = %f seconds\n", + x / 1000.0); + x = statHistDeltaMedian(&l->client_http.miss_svc_time, + &f->client_http.miss_svc_time); + storeAppendPrintf(sentry, "client_http.miss_median_svc_time = %f seconds\n", + x / 1000.0); + x = statHistDeltaMedian(&l->client_http.hit_svc_time, + &f->client_http.hit_svc_time); + storeAppendPrintf(sentry, "client_http.hit_median_svc_time = %f seconds\n", + x / 1000.0); x = statHistDeltaMedian(&l->cd.client_svc_time, &f->cd.client_svc_time); storeAppendPrintf(sentry, "cd.client_median_svc_time = %f seconds\n", -- 2.47.3