]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add more profiling points
authoradrian <>
Thu, 28 Sep 2006 07:04:54 +0000 (07:04 +0000)
committeradrian <>
Thu, 28 Sep 2006 07:04:54 +0000 (07:04 +0000)
include/profiling.h
src/client_side_request.cc

index 84cdcfaedbdd8d5f662825fc7aeeb326c7656622..e3f6dbb2fa498fb31950aeeaa43cf0cd88d3ddeb 100644 (file)
@@ -143,6 +143,7 @@ typedef enum {
     XPROF_clientSocketRecipient,
     XPROF_httpStart,
     XPROF_HttpParserParseReqLine,
+    XPROF_httpRequestFree,
     XPROF_LAST
 } xprof_type;
 
index 3c184afd69efd0b1e53334a31b07656e3b56c166..e6e49982d0446c47bd9a38c573b307f81fd02285 100644 (file)
@@ -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 */