Xdebug module Output filename Configuration description

Source: Internet
Author: User
Tags crc32 checksum

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.