I'm using ts-node to execute scripts written in TypeScript. I would like to inspect a flamegraph using 0x. Here is the current command I'm executing with ts-node:
> ts-node -r tsconfig-paths/register scripts/my-script.ts
How would I use 0x to capture a flamegraph of the scripts execution? Or, is there another way to capture a flamegraph of the executed code?