Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
1) Use a profiler like xdebug. As a result, we get detailed information about the execution of all calls in the code. Then, using some tool, we view this information in a readable format.
2) Install the Laravel debugbar package . You will get a debug panel, which will display the time spent loading the framework and executing the code itself, the time spent executing database queries. Also, you can measure the execution time of the functions you are interested in in this way:
Debugbar::startMeasure('example', 'Time for example code');
// код, который нужно проанализировать
Debugbar::stopMeasure('example');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question