I am trying to profile a codeigniter application with xhprof. I am getting the report like following...
Now I am trying to ignore some function during xhprof report generation. For that what I did is like following....
$ignore = array(
'???_op',
'???_op@1',
'???_op@2',
'???_op@3',
'???_op@4',
'???_op@5'
);
xhprof_enable(XHPROF_FLAGS_NO_BUILTINS | XHPROF_FLAGS_CPU | XHPROF_FLAGS_MEMORY, array('ignored_functions' => $ignore));
Now if I want to ignore all the CI related functions (i.e the functions starting like CI_*
) seems like I have to insert them one by one in the array.
Is there any way where I can pattern match with regex and ignore functions according to my requirement?