Conversation
…open-to-window links
|
Are you sure that rendering is slow? Because debug panels usually make some computations which may occur before render. Also DI extensions which add debug panels usually have |
dbabb37 to
eb2e772
Compare
Yes I am sure. If I remove all panels from tracy then application is really very faster. You are right. All extensions which I use, have debugger option. If I set debugger to false the panel is disabled. But I dont know how remove panel with Execution time and composer packages. It is possible? |
de3ad52 to
191c0d2
Compare
2b958bb to
f36b649
Compare
5682743 to
22f3d56
Compare
94e7531 to
2199b3b
Compare
Feature:
I am using a lot of nette extensions which automatically add panel to \Tracy\Bar. I found out that in production mode is my application faster.
With my changes it is possible ignore rendering of unnecessary pannels and make application faster.
In bootstrap.php:
\Tracy\Debugger::getBar()->ignorePanel('Kdyby\RabbitMq\Diagnostics\Panel'); \Tracy\Debugger::getBar()->ignorePanel('Instante\Tracy\Login\DebugLogin'); \Tracy\Debugger::getBar()->ignorePanel('Nette\Bridges\SecurityTracy\UserPanel'); \Tracy\Debugger::getBar()->ignorePanel('Nette\Bridges\ApplicationTracy\RoutingPanel'); \Tracy\Debugger::getBar()->ignorePanel('kdyby.translation'); \Tracy\Debugger::getBar()->ignorePanel('Kdyby\Redis\Diagnostics\Panel'); \Tracy\Debugger::getBar()->ignorePanel('Nette\Bridges\DatabaseTracy\ConnectionPanel'); \Tracy\Debugger::getBar()->ignorePanel('Nette\Bridges\DITracy\ContainerPanel'); \Tracy\Debugger::getBar()->ignorePanel('Kdyby\Events\Diagnostics\Panel'); \Tracy\Debugger::getBar()->ignorePanel('Tracy:errors'); \Tracy\Debugger::getBar()->ignorePanel('Tracy:info');