How to read xdebug profile in webgrind?

I have xdebug and webgrind, and I created a profile, so I can start to improve the speed of my code. I displayed the profile in webgrind, but I did not understand what this means. All that I have done is not explained in any way.

Could someone explain the basics of reading a webgrind report:

Call count

Total cost of independent work

Total Inclusive Price

What do the different colors mean?

What does the color bar mean?

Challenges

Total cost of calls

graph

+43
profiling php xdebug
Aug 17 '11 at 2:33 p.m.
source share
1 answer

The basic release lists all the various functions, methods, and included / required files.

  • Number of Calls: The number of times the function was called

  • Total cost of independent work: The total time taken to execute raw php in this function (time taken to execute other user-defined functions is excluded).

  • Total cost: Total time, including any other functions (internal PHP or your functions)

  • What do the different colors mean?

    • Blue - PHP internal functions.
    • Green are your class methods.
    • Orange is a procedural function.
    • Gray is the time spent on include or require .php files.
  • What does a color bar mean? A graphical representation of the time breakdown for each type, as described above.

  • For the latter, I assumed that you clicked the arrow to open a specific function?

    • Calls: Functions / methods called when this function is executed

    • The total cost of calls . The total execution time of this function when called from the parent function

    • Count: The number of times the parent calls the child.

+73
Aug 17 2018-11-11T00:
source share
— -



All Articles