Closed giovanni-bertoncelli closed 2 years ago
I think Node.js started supporting M1 Macs officially from Node v16. There might be plenty of things going wrong.
Yes, natively it works only with Node v16 and above. But by emulating with Rosetta I think every nodejs version should be compatible: https://doesitarm.com/app/nodejs/, https://github.com/ThatGuySam/doesitarm/issues/299#issuecomment-733210648
The command is:
clinic flame -- node test.js
Generating flamegraphs is quite a low level task. I would be very surprised if it worked over Rosetta.
I would be happy to receive a PR to make this happen, however I don't think it's something we have the bandwidth to support given that Node v16 is now LTS.
If you have a commercial need for this we (NearForm) are happy to provide long-term support.
Expected Behavior
When I run the clinic flare inspector I expect that the node script executes completely before exiting and gathering statistics.
Current Behavior
It seems that in my environment even with a super-simple script with a single console.log the flare inspector considers the node script exiting immediately and does not run the script at all, gathering at the end empty statistics. No errors are thrown.
Steps to Reproduce (for bugs)
Sample upload
Environment