From f744262b4ac5587758f309add7e45b2b5e65adf6 Mon Sep 17 00:00:00 2001 From: longxinhui Date: Wed, 2 May 2018 15:51:11 +0800 Subject: [PATCH] #8 php.ini can display with interval and depth configuration php.ini can display with interval and depth configuration --- README.md | 7 +++++++ extension/xhprof.c | 1 + 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 408c7739..e0c34048 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,13 @@ extension = xhprof.so xhprof.output_dir = /tmp/xhprof ``` +### php.ini configuration +|     Options       |      Defaults     |   Explain    | +| --------------- |:-------------:|:---------| +|xhprof.output_dir  | "" | Output directory| +|xhprof.sampling_interval  | 100000 | Sampling interval to be used by the sampling profiler, in microseconds| +|xhprof.sampling_depth  | 2147483647 | Depth to trace call-chain by the sampling profiler| + # Added ### PDO::exec ### PDO::query diff --git a/extension/xhprof.c b/extension/xhprof.c index 478dea7f..62bdb978 100644 --- a/extension/xhprof.c +++ b/extension/xhprof.c @@ -315,6 +315,7 @@ PHP_MINFO_FUNCTION(xhprof) php_info_print_table_header(2, "xhprof support", "enabled"); php_info_print_table_row(2, "Version", XHPROF_VERSION); php_info_print_table_end(); + DISPLAY_INI_ENTRIES(); }