略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: xhprof_sample_enable

2024-04-29

xhprof_sample_enable

(PECL xhprof >= 0.9.0)

xhprof_sample_enable以采样模式启动 XHProf 性能分析

说明

xhprof_sample_enable(): void

xhprof_enable() 的更轻量的版本,以采样模式开始性能分析。 抽样的间隔为 0.1 秒,样本记录了完整的函数调用堆栈。 主要使用的情况是以较低的性能开销来进行性能监控和诊断。

参数

此函数没有参数。

返回值

null

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.xhprof-sample-enable.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3