-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the Inclusive Wall Time of Current function bigger than all Child functions #266
Comments
@shengbinxu The reason for that is inclusive CPU time means time spent in PHP code performing operations -- think string manipulations and arithmetic. It does not include time taken by I/O operations or waiting on the database or network, for example. Inclusive Wall Time includes everything including the I/O operations. See https://blackfire.io/docs/reference-guide/time for more info. Also, in your screen shot, the Inclusive CPU seems to be 0 us always. You highlighted actually the Inclusive Wall Time column in red. Please note the column alignments are a little odd. That said, 0 us for Inclusive CPU seems impossible but if those methods are only I/O bound then it could be true. |
@michaelbutler thank you very much ! I understand what you said.
but, I still do not understand why about this, where the difference of about 15,000us gone? |
@michaelbutler It takes time to run the statements in a function.
Similar to how your This is named "Self time" or "Self Wall Time", which is shown here as 17 milliseconds, which means that (30.3 ms - 17.6 ms = ) there should be about 12.7 ms in the child functions. This looks correct to me, as the numbers in that screenshot add up to 12.61 ms. |
@Krinkle Very good answer! thank you very much |
the Inclusive Wall Time of current function is : 30,321us
and the total Inclusive Wall Time of all children function is less than 15,000us,
why ? I think the two time should nearly equal.
and the code is :
thank you very much!
The text was updated successfully, but these errors were encountered: