microsoft / microsoft/vscode-js-debug

Support for Performance.{mark, measure}

Open
#2,148 2 comments 0 reactions 1 assignee View on GitHub

@connor4312 is already working on this.

Since Dec 13, 2024.

feature-request
Dominant language
TypeScript
Stars
2k
Forks
373
Avg merge
1d 9m
Merged PRs (30d)
6

Description

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

Image

What is needed for this support to appear in the VS Code profile output and flamegraph?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.