Roxen.git
/
server
/
etc
/
include
/
request_trace.h
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/etc/include/request_trace.h:1:
// -*- pike -*- // // Some stuff to do logging of a request through the server. //
-
//
$Id: request_trace.h,v 1.20 2009/04/21 15:54:52 mast Exp $
+
//
$Id$
#ifndef REQUEST_TRACE_H #define REQUEST_TRACE_H #include <roxen.h> #include <module.h> // Note that TRACE_ENTER (and TRACE_LEAVE) takes message strings // in plain text. Messages are preferably a single line, and they // should not end with period and/or newline. // // // Roxen 5.0 compatibility notice: // // Pre-5.0 TRACE_ENTER and TRACE_LEAVE allowed html markup to pass // through unquoted into the Resolve Path wizard page, but since the // ultimate destination may not be a web page at all this capability // has been removed. The Resolve Path wizard will now quote all // strings instead.
-
#if
efun
(gethrvtime)
+
#if
constant
(gethrvtime)
#define HRTIME() gethrvtime()
-
#elif
efun
(gethrtime)
+
#elif
constant
(gethrtime)
#define HRTIME() gethrtime() #else #define HRTIME() 0 #endif #ifdef REQUEST_TRACE # define ID_TRACE_ENTER(ID, MSG, OBJ) do{ \ int _ts_ = HRTIME(); \ if (object _id_ = (ID)) { \