vscode-js-debug
vscode-js-debug copied to clipboard
Support for Performance.{mark, measure}
This may be a limitation of Node.js rather than VS Code, but it would be good to have performance.mark and performance.measure annoations appear in the final trace and the flamegraph you get after profiling. Sometimes I add more detailed measures around unnamed anonymous functions to get a idea on how long it took, but then I can't see the results inside of flamegraph.
This works in the browser using dev tools but it doesn't seem to exist from the VS Code side. Here is the browser version explained: https://developer.chrome.com/docs/devtools/performance/reference
What is needed for this support to appear in the VS Code profile output and flamegraph?
Currently our profiles come from the Profiler V8 domain. Marks appear on the PerformanceTimeline which is not something we interact with yet, so implementing this is not super trivial. I also don't know whether Node.js implements that domain as it's not part of the v8-inspector protocol
I came across this https://github.com/nodejs/node/issues/47813 which is related