From cfac5f5b674a038a35043018145bc61584695fdb Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Tue, 28 Dec 2010 15:16:21 +0000 Subject: extending the API interface - plugins can register themselves with a structure and can be searched. Every plugin can have statistics and they are shown under the statistics of mysqlnd in MINFO. --- ext/mysqlnd/mysqlnd_debug.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ext/mysqlnd/mysqlnd_debug.h') diff --git a/ext/mysqlnd/mysqlnd_debug.h b/ext/mysqlnd/mysqlnd_debug.h index 060b97c04d..9c37dce4e9 100644 --- a/ext/mysqlnd/mysqlnd_debug.h +++ b/ext/mysqlnd/mysqlnd_debug.h @@ -59,6 +59,18 @@ struct st_mysqlnd_debug const char ** skip_functions; }; +struct st_mysqlnd_plugin_trace_log +{ + struct st_mysqlnd_plugin_header plugin_header; + struct + { + MYSQLND_DEBUG * (*trace_instance_init)(const char * skip_functions[] TSRMLS_DC); + char * (*get_backtrace)(uint max_levels, size_t * length TSRMLS_DC); + } methods; +}; + +void mysqlnd_debug_trace_plugin_register(TSRMLS_D); + PHPAPI extern const char * mysqlnd_debug_std_no_trace_funcs[]; PHPAPI MYSQLND_DEBUG * mysqlnd_debug_init(const char * skip_functions[] TSRMLS_DC); -- cgit v1.2.1