-
-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bar: ignore pannels #388
base: master
Are you sure you want to change the base?
Bar: ignore pannels #388
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
34992a5
to
7e8d83f
Compare
53883a2
to
e26bb83
Compare
ed50c8c
to
1a1cfeb
Compare
e978bbc
to
f8e0f10
Compare
866bd61
to
7dd88f7
Compare
b39998b
to
5906211
Compare
e89fde9
to
5718904
Compare
33ec3c4
to
8d3f47d
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');