You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to take a cpu profile or flamegraph of my nodejs process where my application is written in typescript
What is the feature you are proposing to solve the problem?
Implement an optional cli flag that enables an experimental typescript ESM module loader.
I want nodejs to be able to start my application so that I’m not running ts-node or bob-esm instead.
by doing this I don’t have to fight with our existing tool chain which spawns node as a child process and thus makes it challenging and frustrating to attach the profiler or perf command to the child process.
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered:
For my own use case I actually realized that the third party library I am using is --loader compatible
So I was able to replace bob-tsm src/index.ts with node --loader=bob-tsm src/index.ts and that allowed me to cut out the child process and attach the profiler directly to node binary.
I think --loader=x is a very simple way of getting typescript support and was not really aware of it until now.
What is the problem this feature will solve?
I want to take a cpu profile or flamegraph of my nodejs process where my application is written in typescript
What is the feature you are proposing to solve the problem?
Implement an optional cli flag that enables an experimental typescript ESM module loader.
I want nodejs to be able to start my application so that I’m not running ts-node or bob-esm instead.
by doing this I don’t have to fight with our existing tool chain which spawns node as a child process and thus makes it challenging and frustrating to attach the profiler or perf command to the child process.
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: