Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web page with high CPU usage -- how to profile

I have a webpage to optimize. When I enter it, the CPU usage increases drastically. I tried to use Chrome Dev Tools, but profiler 92% of the time is in the (program) line. What could I do to find the culprit of this behavior?

like image 204
mrzasa Avatar asked Dec 15 '22 04:12

mrzasa


1 Answers

I've had the same issues before. I don't have a lot of experience using Chrome Dev Tools but here are some useful links:

  • Debugging JavaScript - Chrome DevTools - Google Developers
  • JavaScript Profiling With The Chrome Developer Tools | Smashing Coding
  • Chrome DevTools - Google Developers
like image 167
2 revs, 2 users 56% Avatar answered Dec 17 '22 18:12

2 revs, 2 users 56%