jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

No memory information with JERRY_FLAG_MEM_STATS

Open seanshpark opened this issue 11 years ago • 5 comments

There used to be heap usage report when JERRY_FLAG_MEM_STATS was given. Current code seems does not show them. Is it accidentally removed or intended?

seanshpark avatar Jun 26 '15 06:06 seanshpark

I think we need to turn off JERRY_DISABLE_HEAVY_DEBUG to see it.

ILyoan avatar Jun 26 '15 07:06 ILyoan

After commit https://github.com/Samsung/iotjs/commit/5f74d08565ea8e9f3d479faff0695a8b871ce5ac ReleaseJerry is not called before process exit, so process exits without calling jerry_cleanup, and memory statistics are not printed. Before the commit heap usage report is printed.

ruben-ayrapetyan avatar Jun 26 '15 11:06 ruben-ayrapetyan

I'll fix the exit before cleanup problem. Let's see if stats are printed out properly after land the patch.

ILyoan avatar Jun 29 '15 03:06 ILyoan

@ruben-ayrapetyan , thank you!

seanshpark avatar Jun 29 '15 05:06 seanshpark

As this question is solved and reason is not of JerryScript, I'll close this issue.

seanshpark avatar Jun 29 '15 05:06 seanshpark