mrzasa
mrzasa

Reputation: 23327

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?

Upvotes: 4

Views: 16008

Answers (2)

loislo
loislo

Reputation: 14119

Please use Timeline panel. It will show you what the page does. It shows information about javascript calls, gc, layout, paint etc.

https://developers.google.com/chrome-developer-tools/docs/timeline

Upvotes: 6

George
George

Reputation: 37

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:

Upvotes: 6

Related Questions