Introduce specific XHPROF_MODE_LAYER to improve performance.