summaryrefslogtreecommitdiffstats
path: root/include/ap_mpm.h
diff options
context:
space:
mode:
authorDoug MacEachern <dougm@apache.org>2001-11-29 05:06:05 +0100
committerDoug MacEachern <dougm@apache.org>2001-11-29 05:06:05 +0100
commitbcb88ba28acfe272977e9d913fc2b12e5f2b07be (patch)
tree3311b13c530d0eb86c23611d15ed2c25583928a8 /include/ap_mpm.h
parentFix awkward grammar in some of mod_ssl's error messages. (diff)
downloadapache2-bcb88ba28acfe272977e9d913fc2b12e5f2b07be.tar.xz
apache2-bcb88ba28acfe272977e9d913fc2b12e5f2b07be.zip
carry over from 1.3: disable profiling in the parent process #ifdef GPROF
PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92230 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/ap_mpm.h')
-rw-r--r--include/ap_mpm.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/ap_mpm.h b/include/ap_mpm.h
index 96c24a8904..bf16e9f982 100644
--- a/include/ap_mpm.h
+++ b/include/ap_mpm.h
@@ -183,4 +183,18 @@ AP_DECLARE(apr_status_t) ap_os_create_privileged_process(
*/
AP_DECLARE(apr_status_t) ap_mpm_query(int query_code, int *result);
+/* Defining GPROF when compiling uses the moncontrol() function to
+ * disable gprof profiling in the parent, and enable it only for
+ * request processing in children (or in one_process mode). It's
+ * absolutely required to get useful gprof results under linux
+ * because the profile itimers and such are disabled across a
+ * fork(). It's probably useful elsewhere as well.
+ */
+#ifdef GPROF
+extern void moncontrol(int);
+#define AP_MONCONTROL(x) moncontrol(x)
+#else
+#define AP_MONCONTROL(x)
+#endif
+
#endif