File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ int __riscosify_control = __RISCOSIFY_STRICT_UNIX_SPECS;
93
93
94
94
#ifdef HAVE_VALGRIND
95
95
# include "valgrind/callgrind.h"
96
+ # include "valgrind/cachegrind.h"
96
97
#endif
97
98
98
99
#ifndef PHP_WIN32
@@ -2247,8 +2248,10 @@ consult the installation file that came with this distribution, or visit \n\
2247
2248
#ifdef HAVE_VALGRIND
2248
2249
if (warmup_repeats > 0 ) {
2249
2250
CALLGRIND_STOP_INSTRUMENTATION ;
2251
+ CACHEGRIND_STOP_INSTRUMENTATION ;
2250
2252
/* We're not interested in measuring startup */
2251
2253
CALLGRIND_ZERO_STATS ;
2254
+ /* Zeroing stats is not supported for cachegrind. */
2252
2255
}
2253
2256
#endif
2254
2257
} else {
@@ -2461,6 +2464,7 @@ consult the installation file that came with this distribution, or visit \n\
2461
2464
#ifdef HAVE_VALGRIND
2462
2465
if (warmup_repeats == 0 ) {
2463
2466
CALLGRIND_START_INSTRUMENTATION ;
2467
+ CACHEGRIND_START_INSTRUMENTATION ;
2464
2468
}
2465
2469
#endif
2466
2470
@@ -2585,6 +2589,7 @@ consult the installation file that came with this distribution, or visit \n\
2585
2589
#ifdef HAVE_VALGRIND
2586
2590
/* We're not interested in measuring shutdown */
2587
2591
CALLGRIND_STOP_INSTRUMENTATION ;
2592
+ CACHEGRIND_STOP_INSTRUMENTATION ;
2588
2593
#endif
2589
2594
2590
2595
if (!fastcgi ) {
You can’t perform that action at this time.
0 commit comments