php - Xdebug profiler and xdebug_time_index() give different values -


I used Xdebug to profile my PHP application.

When I open the generated profile file with WinCacheGrind, it gives me a total cumulative time of 3ms for {main} (0.003s).

However, when I use the function xdebug_time_index () at the end of my code, it gives a time of 0.03s.

Nobody knows what this difference can be and who is more representative?

By adding any chance, does that necessarily increase the time required for that function?

Also, I can imagine that when PHP runs Time Index 0), while the internal counter of XDebug can start a little earlier.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -