diff --git a/test/sequential/test-cpu-prof.js b/test/sequential/test-cpu-prof.js index a13db4ac10ef4e..8b9001ba674e23 100644 --- a/test/sequential/test-cpu-prof.js +++ b/test/sequential/test-cpu-prof.js @@ -3,6 +3,13 @@ // This tests that --cpu-prof and --cpu-prof-path works. const common = require('../common'); +if (process.features.debug && + process.config.variables.node_code_cache_path === 'yes') { + // FIXME(joyeecheung): the profiler crashes when code cache + // is enabled in debug builds. + common.skip('--cpu-prof does not work in debug builds with code cache'); +} + const fixtures = require('../common/fixtures'); common.skipIfInspectorDisabled();