1
Instrumenting your code for profiling with the Edge Dev Tools Andy Sterland, Senior Program Manager, Visual Studio @AndySterland andy.sterland@microsoft.com Title: Abstract:
More than console.log Timing code quick ’n’ dirty with the console Instrumenting code for collecting data in the wild and annotating local traces Firing memory snapshot collection programmatically
Instrumentation console.time(‘hi’); console.timeEnd(‘hi’); Demos http://andysterland.github.io/Demos/TracePoints/TracePoints.html
Instrumentation - Profiling performance.mark() performance.measure() Demos http://andysterland.github.io/Demos/TracePoints/TracePoints.html
Instrumentation - Memory console.takeHeapSnashot() Demos http://andysterland.github.io/Demos/TracePoints/TracePoints.html
Summary Measuring time spans in the console console.time/timeEnd Marking profile traces: performance.mark performance.measure Taking memory snapshots from code console.takeHeapSnashot()
Where next? Follow @EdgeDevTools (2x weekly tips!) Tweet to us @EdgeDevTools Vote on features you want on UserVoice: http://bit.ly/F12UserVoice (https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer/) Docs and guides for using the Edge Developer Tools is at: http://edgedev.tools …and you can always find me on @AndySterland