From d270f82ecb9e65b91729f7ec52235a14a5be0952 Mon Sep 17 00:00:00 2001 From: Akos Kiss Date: Mon, 3 Sep 2018 09:21:21 +0200 Subject: [PATCH] Clean up memory statistics printing functions (#2502) - Remove leftover declaration of `jmem_pools_stats_print`. - Remove unnecessary trampoline function `jmem_stats_print`. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu --- jerry-core/jmem/jmem-allocator-internal.h | 3 --- jerry-core/jmem/jmem-allocator.c | 11 +---------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/jerry-core/jmem/jmem-allocator-internal.h b/jerry-core/jmem/jmem-allocator-internal.h index 6b5b730ad..77cb0c4b6 100644 --- a/jerry-core/jmem/jmem-allocator-internal.h +++ b/jerry-core/jmem/jmem-allocator-internal.h @@ -60,9 +60,6 @@ void jmem_run_free_unused_memory_callbacks (jmem_free_unused_memory_severity_t s * \addtogroup poolman Memory pool manager * @{ */ -#ifdef JMEM_STATS -void jmem_pools_stats_print (void); -#endif /* JMEM_STATS */ void jmem_pools_finalize (void); void jmem_pools_collect_empty (void); diff --git a/jerry-core/jmem/jmem-allocator.c b/jerry-core/jmem/jmem-allocator.c index 10f880f88..8c42d3952 100644 --- a/jerry-core/jmem/jmem-allocator.c +++ b/jerry-core/jmem/jmem-allocator.c @@ -25,15 +25,6 @@ #include "jmem-allocator-internal.h" #ifdef JMEM_STATS -/** - * Print memory usage statistics - */ -static void -jmem_stats_print (void) -{ - jmem_heap_stats_print (); -} /* jmem_stats_print */ - /** * Register byte code allocation. */ @@ -172,7 +163,7 @@ jmem_finalize (void) #ifdef JMEM_STATS if (JERRY_CONTEXT (jerry_init_flags) & ECMA_INIT_MEM_STATS) { - jmem_stats_print (); + jmem_heap_stats_print (); } #endif /* JMEM_STATS */