XPROF_MemObject_write,
XPROF_storeWriteComplete,
XPROF_mem_hdr_write,
+ XPROF_headersEnd,
+ XPROF_parseHttpRequest,
+ XPROF_HttpStateData_processReplyHeader,
XPROF_LAST
} xprof_type;
/*
- * $Id: client_side.cc,v 1.734 2006/09/19 07:56:57 adrian Exp $
+ * $Id: client_side.cc,v 1.735 2006/09/20 06:29:10 adrian Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
conn->in.buf[conn->in.notYetUsed] = '\0';
/* Process request */
+ PROF_start(parseHttpRequest);
context = parseHttpRequest(conn, &method, &prefix, &req_line_sz, &http_ver);
+ PROF_stop(parseHttpRequest);
/* partial or incomplete request */
if (!context) {
/*
- * $Id: http.cc,v 1.506 2006/09/19 07:56:57 adrian Exp $
+ * $Id: http.cc,v 1.507 2006/09/20 06:29:10 adrian Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
/* Connection closed; retrieval done. */
eof = 1;
- if (!flags.headers_parsed)
+ if (!flags.headers_parsed) {
/*
* When we called processReplyHeader() before, we
* didn't find the end of headers, but now we are
* definately at EOF, so we want to process the reply
* headers.
*/
+ PROF_start(HttpStateData_processReplyHeader);
processReplyHeader();
+ PROF_stop(HttpStateData_processReplyHeader);
+ }
else if (getReply()->sline.status == HTTP_INVALID_HEADER && HttpVersion(0,9) != getReply()->sline.version) {
fwd->fail(errorCon(ERR_INVALID_RESP, HTTP_BAD_GATEWAY, fwd->request));
flags.do_next_read = 0;
}
} else {
if (!flags.headers_parsed) {
+ PROF_start(HttpStateData_processReplyHeader);
processReplyHeader();
+ PROF_stop(HttpStateData_processReplyHeader);
if (flags.headers_parsed) {
bool fail = reply == NULL;
/*
- * $Id: mime.cc,v 1.127 2006/05/19 17:05:18 wessels Exp $
+ * $Id: mime.cc,v 1.128 2006/09/20 06:29:10 adrian Exp $
*
* DEBUG: section 25 MIME Parsing
* AUTHOR: Harvest Derived
size_t e = 0;
int state = 1;
+ PROF_start(headersEnd);
+
while (e < l && state < 3) {
switch (state) {
e++;
}
+ PROF_stop(headersEnd);
if (3 == state)
return e;