jerryscript-project / js-remote-test

This repository is includes the automatic test results of iotjs
3 stars 16 forks source link

Reorganize the system-heap measurement. #232

Closed rtakacs closed 5 years ago

rtakacs commented 5 years ago

Introduced a new jstest_memstat.c file that contains all the memory monitoring functions (from the patch files). Added custom allocator functions (jstest_malloc, jstest_realloc, ...) that can allocate memory and monitor its usage.

In this case the content of the system-heap patches can be reduced, because it's simply enough to use the jstest allocator functions instead of the system allocator ones.

rtakacs commented 5 years ago

Please don't merge this PR, I'm modifying this patch, just a little bit.

rtakacs commented 5 years ago

@LaszloLango Could you check the PR again?

rtakacs commented 5 years ago

@LaszloLango I've updated the PR.