php-debugbar icon indicating copy to clipboard operation
php-debugbar copied to clipboard

(fix)preload formatter, avoids unexpected jumps on timeline

Open erikn69 opened this issue 1 year ago • 0 comments

Closes #449 image

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

erikn69 avatar Sep 21 '23 19:09 erikn69