Skip to content

Disable instrumentation for disabled panels #453

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

Merged
merged 4 commits into from
Nov 10, 2013
Merged

Disable instrumentation for disabled panels #453

merged 4 commits into from
Nov 10, 2013

Conversation

aaugustin
Copy link
Contributor

This pull request eliminates entirely the overhead of disabled panels.

@aaugustin
Copy link
Contributor Author

Another nice side-effect of this pull request is that it (almost) eliminates import-time monkey-patching.

This makes it safe to import the debug toolbar in any Python module.

@aaugustin
Copy link
Contributor Author

I don't know why the tests failed on Travis. They pass locally.

aaugustin added a commit that referenced this pull request Nov 10, 2013
…sabled-panels

Disable instrumentation for disabled panels
@aaugustin aaugustin merged commit d889bf2 into django-commons:master Nov 10, 2013
@aaugustin aaugustin deleted the disable-instrumentation-for-disabled-panels branch November 10, 2013 17:58
ryneeverett pushed a commit to ryneeverett/django-debug-toolbar that referenced this pull request Oct 2, 2016
…ntation-for-disabled-panels

Disable instrumentation for disabled panels
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 this pull request may close these issues.

1 participant