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
This commit is contained in:
Akos Kiss 2018-09-03 09:21:21 +02:00 committed by GitHub
parent f5757e4c91
commit d270f82ecb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 13 deletions

View File

@ -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);

View File

@ -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 */