最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Web page with high CPU usage -- how to profile - Stack Overflow

programmeradmin3浏览0评论

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?

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?

Share Improve this question asked Nov 9, 2013 at 13:47 mrzasamrzasa 23.3k11 gold badges60 silver badges96 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 6

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

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./chrome-developer-tools/docs/timeline

发布评论

评论列表(0)

  1. 暂无评论