Disable instrumentation for disabled panels

This pull request eliminates entirely the overhead of disabled panels.