Disabling a recommendation

By Christophe Dujarric, on Jan 03, 2019

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.
    # Disable the 'You should execute less SQL queries' recommendation
        enabled: false

We hope this will help you build even more accurate test workflows!

Happy performance testing,

Christophe Dujarric

Christophe is the Chief Product Officer at Blackfire. He's an engineer, but probably one of the least "tech" people in the company. He's wearing many hats, from product management to marketing and sales. He loves the beauty of simple solutions that solve actual problems.