<?php
xhprof_enable(
XHPROF_FLAGS_MEMORY,
[
'ignored_functions' => [
//'call_user_func',
//'call_user_func_array'
]
]
); //逻辑代码
//...... $xhprofData = xhprof_disable();// $xhprofData是数组形式的分析结果 require '../xhprof_lib/utils/xhprof_lib.php';
require '../xhprof_lib/utils/xhprof_runs.php'; $xhprofRuns = new XHProfRuns_Default();
$runId = $xhprofRuns->save_run($xhprofData, 'xhprof_test'); $profile_url = 'http://10.10.20.3/xhprof_html/index.php?run=' . $runId . '&source=xhprof_test';
echo '<a href="'.$profile_url.'" target="_blank">性能链接</a>';

最新文章

  1. Vim配置文件
  2. Servlet 之 ServletContext
  3. block,inline和inline-block概念和区别(转)
  4. ACM题目————网格动物
  5. 【英语】Bingo口语笔记(59) - 穿着的表达
  6. HTML系列(六):划分文档结构
  7. SIX GOD
  8. 初探JavaScript魅力(五)
  9. Python os模块--路径、文件、系统命令等操作
  10. zeroc
  11. 痞子衡嵌入式:飞思卡尔i.MX RT系列MCU启动那些事(13)- 从Serial(1-bit SPI) EEPROM/NOR恢复启动
  12. 【ZCTF】easy reverse 详解
  13. Windows安装PostgreSQL11.1
  14. sga 操作命令
  15. JavaScript &lt;script&gt;标签的位置、延迟脚本(defer属性)与 异步脚本(async属性)
  16. http接口测试工具——RESTClient
  17. Java对象的强、软、弱和虚引用+ReferenceQueue
  18. Java8新特性 -- 四大内置的核心函数式接口
  19. linux -- 服务开机自启动
  20. 「WC2006」水管局长

热门文章

  1. jade-包含
  2. Nginx中ngx_http_upstream_module模块
  3. bug提交遵循的规则
  4. 数字pid笔记(2)
  5. 17、生命周期-BeanPostProcessor在Spring底层的使用
  6. 10、Spring Boot 2.x 集成 Log4j2
  7. JQuery 实践---创建元素包装集
  8. Java中通过Array.sort()对数组从大到小排序
  9. PHP mysqli_error_list() 函数
  10. form表单 一个input时 回车自动提交