-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for capturing heap and tracing-API-based profiles #435
Comments
This is exciting. |
This issue is a good one for Grace Hopper / Hacktoberfest! Collecting a heap profile here should be possible with plug-ins to our existing functionality. The "Chrome Debug Protocol" is how we talk to the debuggee (Node.js, or browsers). CDP docs for heap profiling here -- you'll probably want to look at the sampling heap profile initially. You want to create a new IProfiler class here and bind it in the IOC container. The interfaces should guide you through what's needed. You'll probably want to abstract and reuse some of the location-massaging code from the CpuProfiler. Once it's there, the "Start Profiling" command (available when running a Node.js program) will open a picker asking you what kind of profile you want to take. Additional extra things you could do once you have that working:
General contributing/setup: https://github.com/microsoft/vscode-js-debug/blob/master/CONTRIBUTING.md#development |
@connor4312 Any idea when this might get added? We would love to use this functionality |
We had a contribution to add heap profiling. Currently no plans to add a tracing profiler to VS Code. This is not supported by V8/Node.js anyway. |
Right now we can capture CPU profiles. We should also support heap profiles for all targets, and can consider supporting tracing API-based profiling for browsers.
The text was updated successfully, but these errors were encountered: