@@ -104,6 +104,10 @@ final class PerfOptions {
104
104
public string $tempDir ;
105
105
public ?string $srcDir ;
106
106
107
+ public ?string $scriptBeforeWarmup ;
108
+ public ?string $scriptAfterWarmup ;
109
+ public ?string $scriptAfterBenchmark ;
110
+
107
111
public bool $notBenchmarking = false ;
108
112
109
113
private array $args ;
@@ -156,6 +160,9 @@ public function __construct(Vector<string> $argv) {
156
160
' max-delay-admin-request:' ,
157
161
' max-delay-nginx-keepalive:' ,
158
162
' max-delay-nginx-fastcgi:' ,
163
+ ' exec-before-warmup:' ,
164
+ ' exec-after-warmup:' ,
165
+ ' exec-after-benchmark:' ,
159
166
' daemon-files' , // daemon output goes to files in the temp directory
160
167
' temp-dir:' , // temp directory to use; if absent one in /tmp is made
161
168
' src-dir:' , // location for source to copy into tmp dir instead of ZIP
@@ -235,6 +242,10 @@ public function __construct(Vector<string> $argv) {
235
242
$this -> allVolatile = $this -> getBool(' all-volatile' );
236
243
$this -> interpPseudomains = $this -> getBool(' interp-pseudomains' );
237
244
245
+ $this -> scriptBeforeWarmup = $this -> getNullableString(' exec-before-warmup' );
246
+ $this -> scriptAfterWarmup = $this -> getNullableString(' exec-after-warmup' );
247
+ $this -> scriptAfterBenchmark = $this -> getNullableString(' exec-after-benchmark' );
248
+
238
249
if ($this -> getBool(' tcprint' )) {
239
250
$tcprint = hphp_array_idx ($o , ' tcprint' , null );
240
251
if (is_string ($tcprint ) && $tcprint !== ' ' ) {
0 commit comments