xdebug:xdebug模块输出文件名的配置介绍说明

  xdebug性能测试输出文件名是可以配置

  默认是 xdebug.profiler_output_name = cachegrind.out.%p

  那个%p是服务器pid会输出“cachegrind.out.1408”的类文件

  可能这样不太方便测试很多文件网站WebSite

  网上看到中文文章里面都没有有关这个参数介绍说明

  我从xdebug官网上找来了它介绍说明翻译成中文了 符号 含义 配置样例 样例文件名
%c 当前工作目录crc32校验值 trace.%c trace.1258863198.xt
%p 当前服务器进程pid trace.%p trace.5174.xt
%r 随机数 trace.%r trace.072db0.xt
%s 脚本文件名(注) cachegrind.out.%s cachegrind.out._home_httpd_html_test_xdebug_test_php
%t Unix时间戳(秒) trace.%t trace.1179434742.xt
%u Unix时间戳(微秒) 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 (来自$_COOKIE 如果设置了话) trace.%S trace.c70c1ec2375af58f74b390bbdd2a679d.xt
%% % trace.%% trace.%.xt
注 此项不适用于trace file文件名



  从上表可以找到些适合你参数

  比如我想针对每个文件生成个输出文件

  那么我可以用:

  xdebug.profiler_output_name = cachegrind.out.%s

  多个域名也可以组合使用

  xdebug.profiler_output_name = cachegrind.out.%H.%u.%s

Tags:  启动配置文件名 netbeansxdebug phpxdebug xdebug

延伸阅读

最新评论

发表评论