File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -2219,6 +2219,8 @@ consult the installation file that came with this distribution, or visit \n\
2219
2219
#ifdef HAVE_VALGRIND
2220
2220
if (warmup_repeats > 0 ) {
2221
2221
CALLGRIND_STOP_INSTRUMENTATION ;
2222
+ /* We're not interested in measuring startup */
2223
+ CALLGRIND_ZERO_STATS ;
2222
2224
}
2223
2225
#endif
2224
2226
} else {
@@ -2427,6 +2429,12 @@ consult the installation file that came with this distribution, or visit \n\
2427
2429
}
2428
2430
} /* end !cgi && !fastcgi */
2429
2431
2432
+ #ifdef HAVE_VALGRIND
2433
+ if (warmup_repeats == 0 ) {
2434
+ CALLGRIND_START_INSTRUMENTATION ;
2435
+ }
2436
+ #endif
2437
+
2430
2438
/* request startup only after we've done all we can to
2431
2439
* get path_translated */
2432
2440
if (php_request_startup () == FAILURE ) {
@@ -2546,6 +2554,11 @@ consult the installation file that came with this distribution, or visit \n\
2546
2554
SG (request_info ).query_string = NULL ;
2547
2555
}
2548
2556
2557
+ #ifdef HAVE_VALGRIND
2558
+ /* We're not interested in measuring shutdown */
2559
+ CALLGRIND_STOP_INSTRUMENTATION ;
2560
+ #endif
2561
+
2549
2562
if (!fastcgi ) {
2550
2563
if (benchmark ) {
2551
2564
if (warmup_repeats ) {
@@ -2555,9 +2568,6 @@ consult the installation file that came with this distribution, or visit \n\
2555
2568
gettimeofday (& start , NULL );
2556
2569
#else
2557
2570
time (& start );
2558
- #endif
2559
- #ifdef HAVE_VALGRIND
2560
- CALLGRIND_START_INSTRUMENTATION ;
2561
2571
#endif
2562
2572
}
2563
2573
continue ;
You can’t perform that action at this time.
0 commit comments