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()