Skip to content
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

Add option to disable Tracy panel rendering / object dumping #58

Closed
klimesf opened this issue Nov 4, 2014 · 2 comments · Fixed by #59
Closed

Add option to disable Tracy panel rendering / object dumping #58

klimesf opened this issue Nov 4, 2014 · 2 comments · Fixed by #59

Comments

@klimesf
Copy link
Contributor

klimesf commented Nov 4, 2014

Kdyby/Events are dumping my registered Listeners into the Tracy debugger bar. This was not a problem untill I had to inject the whole Nette\Application\Application object, because I need to create links in some of my listeners.
DebugPanel dumps the whole Application into the debug bar several times (for each Listener), which sometimes takes up to 200MB of memory, thus significantly slowing the application.
It doesn't happen in production mode, when the Panel is disabled.

@fprochazka
Copy link
Member

I had the exactly same problem! That's what this piece of code is for.

You can either enable/disable the entire panel

events:
    debugger: on # off

or you can switch on/off features you'd like to see

events:
    debugger: # theese are default values
        dispatchTree: off
        dispatchLog: on
        events: on
        listeners: off

@klimesf
Copy link
Contributor Author

klimesf commented Nov 4, 2014

Very nice, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants