Disabling a recommendation
Blackfire recommendations are here to support. If some of them are noise or false positives to you, you can now disable it.
While you profile your application, Blackfire is able to detect some patterns in your code. If those patterns don’t meet our performance, quality or security standards, Blackfire will directly let you know of a recommendation on how to fix/improve your code.
This provides a quick and actionable way to interpret a profile. Better than this, it enables you to get started even faster with profiling automation, such as periodic builds, as you will not need to write your own performance tests: recommendations will be used as defaults.
Disabling false positives
All code bases and architectures are not equal. We, and our partners, created the recommendations as practices we believe are the most appropriate, depending on the supported frameworks (Symfony, Magento, Drupal, Typo3, eZ Platform, PHP).
Now it can happen that you disagree with some of recommendations; false-positives may happen. We wanted to provide a way for you to ignore those. You can disable a recommendation by editing the
.blackfire.yml file which contains your tests and scenarios.
# Configure recommendations. recommendations: # Disable the 'You should execute less SQL queries' recommendation too_many_sql: enabled: false
We hope this will help you build even more accurate test workflows!
Happy performance testing,