2

I created a project in Visual Studio Pro 2019 from an existing Node.js TypeScript web code via the “Create a new project” wizard in VS. I am using a Windows 10 machine.

When I launch the Performance Profiler, the only available tool is “Events Viewer”. The tool that I want to use is “Instrumentation” so that I can measure call counts and call response times.

Has anyone had any success in doing this for a Node.js TypeScript web project in VS? If so, how were you able to get the “Instrumentation” tool enabled?

I have seen mention of profiling in the following link, but it is probably referring to Node.js JavaScript projects: https://visualstudio.microsoft.com/vs/features/node-js/

jboldia
  • 21
  • 3
  • Forgot to mention the project contains tsconfig.json files and not jsconfig.json files since it is a Node.js TypeScript project and not a Node.js JavaScript project. – jboldia Aug 31 '20 at 15:41
  • Before you ask, I already have Node.js Tools, Node.js development workload installed. – jboldia Aug 31 '20 at 16:14
  • I am currently using VS Pro 2019 v16.7.2, but the I had the same issue with v16.6.2. – jboldia Aug 31 '20 at 18:30
  • Profiling is mentioned here but I don't find any reference to it at documentation. https://visualstudio.microsoft.com/vs/features/node-js/ Perhaps I should profile with VS Code instead... – rooste Sep 04 '20 at 15:29
  • That page shows function/method performance profiling of Node.js with Visual Studio, but it does not list what edition of Visual Studio (Community/Code, Pro, Enterprise.) I have done function/method performance profiling of C# applications with VS Pro 2013. Given that and 2019 still being current, the non-listing of the VS edition on that page would imply they are saying VS Pro 2019 can do it. – jboldia Sep 04 '20 at 17:03
  • I got Visual Studio pro 2019 and I have c++ project on same solution and that works fine. I ended up installing Visual Studio Code for profiling my Node.js project. – rooste Sep 04 '20 at 19:18

1 Answers1

0

I haven't been able to profile Node.js project with Visual Studio 2019 but I'm using Visual Studio Code as a workaround.

Can I profile NodeJS Applications using Visual Studio Code?

I have been using profiler for C++ project with Visual Studio 2019 and it is better than profiler on VS Code.

rooste
  • 160
  • 9
  • In your profiling of Node.js with VS Code, have you been able to capture the response times of the functions/methods? Is your source code JavaScript or TypeScript? Were you using VS Code 2019? – jboldia Sep 05 '20 at 00:53
  • I have 1.48.2 version of VS Code. My source is JavaScript. I can see execution times of methods but not nearly as high level of visualization, what I get for C++ with Visual Studio 2019 or for Android with Android Studio. But it's better than nothing. – rooste Sep 09 '20 at 21:32