php-debugbar
php-debugbar copied to clipboard
(fix)preload formatter, avoids unexpected jumps on timeline
Closes #449
https://github.com/maximebf/php-debugbar/blob/30f65f18f7ac086255a77a079f8e0dcdd35e828e/src/DebugBar/DataFormatter/DataFormatter.php#L25-L29
Global DataFormatter
creates instances of VarCloner, CliDumper
, this creates a unexpected jump on time line
This PR preloads DataFormatter
before measuring, that allows displaying a consecutive waterfall
https://github.com/maximebf/php-debugbar/blob/30f65f18f7ac086255a77a079f8e0dcdd35e828e/src/DebugBar/DataCollector/DataCollector.php#L46-L52