diff --git a/xdebug_gc_stats.c b/xdebug_gc_stats.c index b80d1084a..7bf0c52e8 100644 --- a/xdebug_gc_stats.c +++ b/xdebug_gc_stats.c @@ -24,6 +24,9 @@ ZEND_EXTERN_MODULE_GLOBALS(xdebug) +static void xdebug_gc_stats_print_run(xdebug_gc_run *run); +static void xdebug_gc_stats_run_free(xdebug_gc_run *run); + int xdebug_gc_collect_cycles(void) { int ret; @@ -69,7 +72,7 @@ int xdebug_gc_collect_cycles(void) return ret; } -void xdebug_gc_stats_run_free(xdebug_gc_run *run) +static void xdebug_gc_stats_run_free(xdebug_gc_run *run) { if (run) { if (run->function_name) { @@ -132,7 +135,7 @@ void xdebug_gc_stats_stop() } } -void xdebug_gc_stats_print_run(xdebug_gc_run *run) +static void xdebug_gc_stats_print_run(xdebug_gc_run *run) { if (!XG(gc_stats_file)) { return; diff --git a/xdebug_gc_stats.h b/xdebug_gc_stats.h index d29fb3fe1..99d5f1f5e 100644 --- a/xdebug_gc_stats.h +++ b/xdebug_gc_stats.h @@ -30,12 +30,9 @@ typedef struct _xdebug_gc_run { } xdebug_gc_run; int (*xdebug_old_gc_collect_cycles)(void); -int xdebug_gc_collect_cycles(void); + int xdebug_gc_stats_init(char *fname, char *script_name); -void xdebug_gc_stats_print_run(xdebug_gc_run *run); -void xdebug_gc_stats_run_free(xdebug_gc_run *run); void xdebug_gc_stats_stop(); - -void xdebug_gc_stats_show_report(); +int xdebug_gc_collect_cycles(void); #endif