Deno: run flamebearer (node tool) for profiling
04:50 17 Dec 2025

I'm using Deno in a classroom setting and am quite happy with it. For a lesson on performance, I'd like to use a profiling tool.

The flamebearer NPM package looks quite promising:

npm install -g glamebearer
node --prof foo.js
node --prof-process --preprocess -j isolate*.log | flamebearer

Since I'd like to re-use the already installed Deno rather than also installing Node/NPM on the student's computers, I'm trying to do the same using Deno.

The installation works fine:

deno install -g npm:flamebearer

Creating the profile also works using Deno's --v8-flags:

deno run --v8-flags=prof foo.ts

However, I have no idea how to mangle the other arguments --prof-process --preprocess -j isolate*.log into deno run. Any ideas how to do this?

node.js profiling v8 deno