Add API for get the memory stats (#1923)

JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
This commit is contained in:
Zidong Jiang
2017-08-04 15:44:37 +08:00
committed by Zoltan Herczeg
parent 8b5fe254d9
commit c242248b47
9 changed files with 165 additions and 5 deletions
+2 -1
View File
@@ -84,7 +84,8 @@ main (void)
jmem_register_free_unused_memory_callback (test_heap_give_some_memory_back);
#ifdef JMEM_STATS
jmem_heap_stats_print ();
// TODO: uncomment it after we solve the divide zero issue.
// jmem_heap_stats_print ();
#endif /* JMEM_STATS */
for (uint32_t i = 0; i < test_iters; i++)