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
  • 33,301
  • 52
  • 152
  • 281

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,629
  • 3
  • 37
  • 59