The Xdebug performance test output file name can be configured.
Default is Xdebug.profiler_output_name = cachegrind.out.%p
The%p is the PID of the server and will output "cachegrind.out.1408" files.
It may not be easy to test many files on a Web site.
There is no description of this parameter in the Chinese articles that are seen on the Internet.
I've got a description of it from the Xdebug website translated into Chinese.
Symbol |
Meaning |
Configuration sample |
Sample file name |
%c |
CRC32 checksum value of current working directory |
Trace.%c |
Trace.1258863198.xt |
%p |
PID for the current server process |
Trace.%p |
Trace.5174.xt |
%r |
Random number |
Trace.%r |
Trace.072db0.xt |
%s |
Script file name (note) |
cachegrind.out.%s |
cachegrind.out._home_httpd_html_test_xdebug_test_php |
%t |
Unix Timestamp (seconds) |
Trace.%t |
Trace.1179434742.xt |
%u |
Unix Timestamp (microseconds) |
trace.%u |
Trace.1179434749_642382.xt |
%H |
$_server[' Http_host '] |
Trace.%h |
Trace.kossu.xt |
%R |
$_server[' Request_uri '] |
Trace.%r |
Trace._test_xdebug_test_php_var=1_var2=2.xt |
%s |
session_id (from $_cookie if set) |
trace.%s |
Trace.c70c1ec2375af58f74b390bbdd2a679d.xt |
%% |
% character |
trace.%% |
Trace.%.xt |
Note This does not apply to the file name of trace file |
From the table above you can find some parameters that are right for you.
For example, I want to generate an output file for each file.
Then I can use:
Xdebug.profiler_output_name = cachegrind.out.%s
Multiple domain names can also be used in combination
Xdebug.profiler_output_name = cachegrind.out.%h.%u.%s