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.
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 :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With