davidmarkclements / 0x

🔥 single-command flamegraph profiling 🔥
MIT License
3.23k stars 106 forks source link

Use timestamp instead of pid for isolate log for babel-node support #135

Closed vizv closed 6 years ago

vizv commented 6 years ago

babel-node spawn its own sub-process which generates a isolate log that 0x is not able to locate.

To resolve such a issue, timestamp might be used as a clue for locating those isolate logs generated with non-standard 0x.

Tested with 0x -o -- babel-node --prof foo.js.

vizv commented 6 years ago

Not working when presets was added, close for now

vizv commented 6 years ago

please ignore this PR, babel works with 0x -- node --require babel-register --require babel-polyfill index.js