Surf-N-Perf

Surf-N-Perf Demo
Method Status/Loading Time
surfnperf.eventStart('demo')
Event Started
surfnperf.setCustom('customKey', 'custom value')
Custom Set
surfnperf.getNetworkTime()
surfnperf.getServerTime()
surfnperf.getNetworkLatency()
surfnperf.getProcessingLoadTime()
surfnperf.getFullRequestLoadTime()
surfnperf.getFirstPaint()
surfnperf.getFirstPaintFrame()
surfnperf.getCustom('customKey')
surfnperf.mark('foo')
Time Marked
surfnperf.duration('pageStart', 'foo')
surfnperf.duration('responseEnd','foo')
surfnperf.duration('loadEventEnd','foo')
surfnperf.eventEnd('demo')
Event Ended
surfnperf.eventDuration('demo')
surfnperf.eventDuration('demo',{decimalPlaces:10})
surfnperf.isHidden()
surfnperf.getHiddenTime()
Resource Timings Demo
Method Status/Loading Time
surfnperfRT.getOrigins()
surfnperfRT.getResourcesFromOrigin("https://rawgit.com")
surfnperfRT.getResource("")
surfnperfRT.duration("", "connectEnd", "requestStart")
surfnperfRT.getStart("")
surfnperfRT.getEnd("")
surfnperfRT.getFullRequestLoadTime("")
surfnperfRT.getNetworkTime("")
surfnperfRT.getServerTime("")
surfnperfRT.getBlockingTime("")