Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JS: Profile What Objects Constructors are Garbage Collected

Is there a way to know what type of objects are being garbage-collected the most in a Javascript application?

I do know I can get Heap Snapshot but that only tells what objects are the most common, not the most garbage-collected.

And Heap Allocations do not give detailed information about Object class.

like image 554
RainingChain Avatar asked Oct 14 '15 14:10

RainingChain


1 Answers

I guess you can do this by taking multiple heap snapshots and then comparing the snapshots to identify which objects are being grabage collected. You can refer to this answer. Hope it helps :)

like image 135
Nahush Farkande Avatar answered Sep 24 '22 03:09

Nahush Farkande