From: adrian <> Date: Thu, 28 Sep 2006 07:04:54 +0000 (+0000) Subject: Add more profiling points X-Git-Tag: SQUID_3_0_PRE5~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72bdee4cf40c37d51eebd40b063739c6aa2c9df2;p=thirdparty%2Fsquid.git Add more profiling points --- diff --git a/include/profiling.h b/include/profiling.h index 84cdcfaedb..e3f6dbb2fa 100644 --- a/include/profiling.h +++ b/include/profiling.h @@ -143,6 +143,7 @@ typedef enum { XPROF_clientSocketRecipient, XPROF_httpStart, XPROF_HttpParserParseReqLine, + XPROF_httpRequestFree, XPROF_LAST } xprof_type; diff --git a/src/client_side_request.cc b/src/client_side_request.cc index 3c184afd69..e6e49982d0 100644 --- a/src/client_side_request.cc +++ b/src/client_side_request.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side_request.cc,v 1.74 2006/09/25 15:04:07 adrian Exp $ + * $Id: client_side_request.cc,v 1.75 2006/09/28 01:04:54 adrian Exp $ * * DEBUG: section 85 Client-side Request Routines * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c) @@ -236,6 +236,7 @@ checkFailureRatio(err_type etype, hier_code hcode) ClientHttpRequest::~ClientHttpRequest() { debug(33, 3) ("httpRequestFree: %s\n", uri); + PROF_start(httpRequestFree); /* if body_connection !NULL, then ProcessBody has not * found the end of the body yet */ @@ -266,6 +267,7 @@ ClientHttpRequest::~ClientHttpRequest() /* moving to the next connection is handled by the context free */ dlinkDelete(&active, &ClientActiveRequests); + PROF_stop(httpRequestFree); } /* Create a request and kick it off */