Current time: 12-13-2017, 09:08 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New metric : CPU abuse
08-09-2012, 12:53 AM (This post was last modified: 08-09-2012 12:55 AM by braincracking.)
Post: #1
New metric : CPU abuse
Hi

As a consultant I see more and more sites released that freezes the old browsers like IE7, by abusing JavaScript. That's generally because the developer does not really check old browsers and makes heavy use of DOM manipulation (without even noticing, thanks to jQuery and plugins).
From time to time, there is a also a badly coded Flash ad that freezes everything.
The WPT waterfall is about the network, the screenshots are about the rendering but there is currently nothing that can warn about CPU hogs.

I would like to be able to
* detect sites that freeze the browser
* monitor that, a bit like the speed index you created

I made some code and integrated it in my WPT private instance. It reads through the _progress.csv file that contains all CPU % and a timestamp and does some math :
* count the number of time the CPU is 100% more that half a second
* average and median load
* CPU cost (the sum of all the percent)

Does it interest somebody ?
Do you think CPU hogs of half a second is representative on how the interface is fluid ?

If so, I will share the code at will


Attached File(s) Image(s)
   

Jean-pierre VINCENT
braincracking.org
Fork of WPT monitor private instance : https://github.com/jpvincent/WPT-server
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)