test: add test for Linux perf
Linux perf has been broken on V8 since the Turbofan/Ignition pipeline became the default compiler. Recently on V8 6.7, we got it back to work (through a flag). Since there are some Node.js tools and some huge Node.js deployments relying on Linux perf (and other external profilers), having tests will help to keep those tools more stable. This first version is marked as flaky since it shouldn't block releases or PRs, but it will help us know if something breaks in advance through v8-canary.
There are still some things to do before landing this, but I wanted to start gathering some feedback.
TODO list:
-
Wait for https://github.com/nodejs/node/pull/19989/ to land (not really necessary, but this test doesn't make sense without it) -
Install Linux perf on some Linux machines: https://github.com/nodejs/build/issues/1274 (also not a blocker) -
Add more comments explaining the test and the fixture
/cc @nodejs/diagnostics
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines