Performance Wrapper Extension for VSCode This extension allows you to easily measure the performance of selected JavaScript code in Visual Studio Code by wrapping the selected code with performance.now() to log its execution time. Features Wrap with Performance Measurement: Select any block of JavaScript code and use the command to wrap it with performance.now(). It adds performance.now() before and after the selected code to measure the execution time, followed by a console.log to display the time taken in milliseconds. Automatic Line Expansion: If a single word is selected, the extension automatically expands the selection to the entire line and wraps that line with the performance measurement code. |