20
20
//
21
21
// NOTE: This test runs only on linux, as that is the only platform supported by perf, and
22
22
// accordingly the only platform where `perf-basic-prof*` v8 flags are available.
23
-
23
+ //
24
+ // MAINTAINERS' NOTE: As of early 2024, the most common failure mode for this test suite
25
+ // is for v8 options to change from version to version. If this suite fails, look there first.
26
+ // We use options to forcibly require certain test cases to JIT code, and the nodeFlags to do
27
+ // so can change.
24
28
25
29
const common = require ( '../common' ) ;
26
30
if ( ! common . isLinux ) {
@@ -48,7 +52,8 @@ const testCases = [
48
52
} ,
49
53
{
50
54
title : '--perf-basic-prof compiled' ,
51
- nodeFlags : [ '--perf-basic-prof' , '--no-turbo-inlining' , '--always-turbofan' ] ,
55
+ nodeFlags : [ '--perf-basic-prof' , '--no-turbo-inlining' , '--always-turbofan' ,
56
+ '--minimum-invocations-before-optimization=0' ] ,
52
57
matches : [
53
58
'test-regex' ,
54
59
'~functionOne .+/linux-perf-logger.js' ,
@@ -66,7 +71,8 @@ const testCases = [
66
71
} ,
67
72
{
68
73
title : '--perf-basic-prof-only-functions compiled' ,
69
- nodeFlags : [ '--perf-basic-prof-only-functions' , '--no-turbo-inlining' , '--always-turbofan' ] ,
74
+ nodeFlags : [ '--perf-basic-prof-only-functions' , '--no-turbo-inlining' , '--always-turbofan' ,
75
+ '--minimum-invocations-before-optimization=0' ] ,
70
76
matches : [
71
77
'~functionOne .+/linux-perf-logger.js' ,
72
78
'~functionTwo .+/linux-perf-logger.js' ,
0 commit comments