Skip to content Skip to sidebar Skip to footer

How Can I Log What Is Being Garbage Collected In My Javascript Code?

I've built an application that wastes 40% of its time collecting garbage, and I'm at my wits' end trying to find out where it is coming from. I've corralled any possible problems i

Solution 1:

In Chrome I would start with following:

  • DevTools > Profile
  • Take Heap Snapshot
  • Working with the application
  • Take Heap Snapshot again
  • Inspect the second snapshot in the comparision mode

Following links may be useful:

Solution 2:

Perhaps you could try Chrome's Heap Profiler?

Also, related questions to Javascript Heap profiling:

Post a Comment for "How Can I Log What Is Being Garbage Collected In My Javascript Code?"