On Github arca1n / web-profiling-presentation
Because faster is better.
Oh hey, these are some notes. They'll be hidden in your presentation, but you can see them if you open the speaker notes window (hit 's' on your keyboard).Profile Early Profile Often
A good resource to learn more about Chrome profiler.
//Instrumentation Code console.time("Label goes here"); functionBeingInstrumented(yada, yadaa); console.timeEnd("Label goes here");
Instrumented code time shows up in chrome://tracing
60fps === 16.6666666667 ms/frame
function bar() { // Do something } function foo() { // Do something bar(); return true; } function renderFrame() { foo(); }Function Name Inclusive Time Exclusive Time renderFrame 30ms 2ms foo 28ms 10ms bar 10ms 10ms
Don't forget to comment out instrumentation code before QA runs the code on non-chrome browsers.