2

I have a page which contain six js included,when the page run about more than 5 mins(with user's operation),the page will turn to run slowly,and from the task manager,I see the browser take more than 150M memeory,so I think there must be a variable in my js which is eating my memory no-normally,but I have no idea how to find it.

Is there any tool or any idea?

hguser
  • 35,079
  • 54
  • 159
  • 293

1 Answers1

4

Gogle chrome can help you. Turn on Developers tools (press F12) -> Profiles and in bottom line you find "Take heap snapshot" (eye icon).

Or you can start profiling and determine, which function eat most CPU resources.

neworld
  • 7,757
  • 3
  • 39
  • 61