(PECL xhprof >= 0.9.0)
xhprof_enable — ���� xhprof ���ܷ�����
$flags
= 0
[, array $options
]] ) : void���� xhprof �������ܷ�����
flags
������Ӷ�����Ϣ�Ŀ�ѡ��ǡ�
���ڴ˱�ǵĸ�����Ϣ�μ�
XHprof ���������磬
XHPROF_FLAGS_MEMORY
���Կ����ڴ�ķ�����
options
array �Ŀ�ѡѡ�����ͨ������ 'ignored_functions' ѡ�����������ܷ����е�ijЩ������
NULL
�汾 | ˵�� |
---|---|
0.9.2 |
��ӿ�ѡ�� options ������
|
Example #1 xhprof_enable() ����
<?php
// 1. elapsed time + memory + CPU profiling; and ignore built-in (internal) functions
xhprof_enable(XHPROF_FLAGS_NO_BUILTINS | XHPROF_FLAGS_CPU | XHPROF_FLAGS_MEMORY);
// 2. elapsed time profiling; ignore call_user_func* during profiling
xhprof_enable(
0,
array('ignored_functions' => array('call_user_func',
'call_user_func_array')));
// 3. elapsed time + memory profiling; ignore call_user_func* during profiling
xhprof_enable(
XHPROF_FLAGS_MEMORY,
array('ignored_functions' => array('call_user_func',
'call_user_func_array')));
?>