Closed danepowell closed 5 years ago
@danepowell Yes you are right, we are seeing this ourselves sometime. It looks like either the recursion detection is not working, or the instrumentation adds some items incorrectly. What you can do right now is unset() all entries where child and parent are the same.
Why don't you replace the return;
by a continue;
? This would prevent the entire execution to fail as the expected return of this function is an array, not null
.
I'm trying to use the XHProf UI (the latest available, from back in 2015) to view data generated by Tideways (master branch, afc61bd1e3336ef207247c5e92ae6b5dab0a6e1c). I'm following the instructions in the Tideways readme pretty much to the letter to capture data. Here's what gets written: 5bad2159280f2.Drush.xhprof.txt
XHProf is throwing this error when I try to view the data:
That seems to be coming from here (if I simply comment out the return statement after that error, everything seems to work fine): https://github.com/phacility/xhprof/blob/0bbf2a2ac34f495e42aa852293fe0ed821659047/xhprof_lib/utils/xhprof_lib.php#L589
It would appear that Tideways is generating incompatible data, or I'm using it wrong somehow. Any idea what's up? I'm not really an expert on the XHProf data format.