jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

Jerry API for triggering GC.

Open ILyoan opened this issue 11 years ago • 3 comments

How about adding void jerry_api_gc (void) API for triggering GC.

ILyoan avatar Oct 19 '15 02:10 ILyoan

No objections, but for me this won't give us any profit it term of memory consumption since GC has pretty smart heuristics for triggering itself.

egavrin avatar Oct 21 '15 07:10 egavrin

@egavrin Yes you are right. I suggested this API because It would be helpful for tracing memory usage or profiling.

ILyoan avatar Oct 22 '15 00:10 ILyoan

Related PR (#685) was merged.

LaszloLango avatar Feb 09 '16 18:02 LaszloLango