You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2022/06/30 11:03:10 UTC
[tomcat-native] branch main updated: All the code that generated the statistics has been removed
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git
The following commit(s) were added to refs/heads/main by this push:
new 5388ff988 All the code that generated the statistics has been removed
5388ff988 is described below
commit 5388ff98845fbfeafd55dfaf501a30b9e9cb30d3
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Jun 30 12:03:05 2022 +0100
All the code that generated the statistics has been removed
---
native/include/tcn.h | 4 ----
native/src/jnilib.c | 15 ---------------
2 files changed, 19 deletions(-)
diff --git a/native/include/tcn.h b/native/include/tcn.h
index 168549fae..e1d50d439 100644
--- a/native/include/tcn.h
+++ b/native/include/tcn.h
@@ -32,10 +32,6 @@
#endif
#if defined(DEBUG) || defined(_DEBUG)
-/* On -DDEBUG use the statistics */
-#ifndef TCN_DO_STATISTICS
-#define TCN_DO_STATISTICS
-#endif
#endif
#include <stdio.h>
#include <stdlib.h>
diff --git a/native/src/jnilib.c b/native/src/jnilib.c
index 414d7f365..7367cd3ca 100644
--- a/native/src/jnilib.c
+++ b/native/src/jnilib.c
@@ -38,12 +38,6 @@
#include <pthread.h>
#endif
-#ifdef TCN_DO_STATISTICS
-extern void sp_poll_dump_statistics();
-extern void sp_network_dump_statistics();
-extern void ssl_network_dump_statistics();
-#endif
-
apr_pool_t *tcn_global_pool = NULL;
static JavaVM *tcn_global_vm = NULL;
@@ -237,16 +231,7 @@ TCN_IMPLEMENT_CALL(void, Library, terminate)(TCN_STDARGS)
if (tcn_global_pool) {
apr_pool_t *p = tcn_global_pool;
tcn_global_pool = NULL;
-#ifdef TCN_DO_STATISTICS
- fprintf(stderr, "APR Statistical data ....\n");
-#endif
apr_pool_destroy(p);
-#ifdef TCN_DO_STATISTICS
- sp_poll_dump_statistics();
- sp_network_dump_statistics();
- ssl_network_dump_statistics();
- fprintf(stderr, "APR Terminated\n");
-#endif
apr_terminate();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org