0

I'm trying to profile some PHP scripts I'm running. I'm already measuring the wall clock time but now I want to know how much time the cpu has dedicated to the script.

Is there any way to measure cpu time of a script? I'm using php7.1

1
  • You should look into Xdebug for PHP for some advanced debugging and profiling: xdebug.org Commented Jun 1, 2017 at 12:42

1 Answer 1

1

AFAIK, you can use xhprof library to measure the cpu time. Here are guidelines of how you can use the library https://tideways.io/profiler/xhprof-for-php7-php5.6.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.