(PECL xhprof >= 0.9.0)
xhprof_enable — Inicia perfil xhprof
$flags = 0
   [, array $options
  ]] ) : voidInicia perfiles xhprof.
flags
       Flags opcionales para añadir información adicional a la creación de perfiles. Véase las 
       constantes XHprof Para obtener más información 
       acerca de estos flags, p. ej., XHPROF_FLAGS_MEMORY 
       para permitir perfiles de memoria.
      
optionsUn array de opciones opcionales, es decir, la opción 'ignored_functions' para pasar en las funciones que se ignoraron durante el perfilado.
   NULL
  
| Versión | Descripción | 
|---|---|
| 0.9.2 | El parámetro opcional optionsfué agregado. | 
Ejemplo #1 Ejemplos de xhprof_enable()
<?php
// 1. tiempo transcurrido + memoria + perfiles CPU; e ignorar las funciones integradas (internas)
xhprof_enable(XHPROF_FLAGS_NO_BUILTINS | XHPROF_FLAGS_CPU | XHPROF_FLAGS_MEMORY);
// 2. perfil tiempo transcurrido; ignorando call_user_func* durante el perfilado
xhprof_enable(
    0,
    array('ignored_functions' =>  array('call_user_func',
                                        'call_user_func_array')));
                                       
// 3. tiempo transcurrido + perfil de memoria; ignorando call_user_func* durante el perfilado
xhprof_enable(
    XHPROF_FLAGS_MEMORY,
    array('ignored_functions' =>  array('call_user_func',
                                        'call_user_func_array')));
?>