Say I have an application on production server and I need to profile some segment of code, but not the whole application, cause it slows drastically.
So I need something like this:
enable_profiler();
function_with_bottle_neck();
disable_profiler();
Is there any way to do that?