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.

Example:

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 has been supporting several start-ups & SMEs to make and sell products out of technologies. He’s involved in every step of the product’s lifecycle, from strategy to design and sales, and loves to coach on product management methods.