Skip to content

Option to disable profiler in CLI environment #45241

@Bilge

Description

@Bilge

Description

The profiler seems to be most useful when combined with the WebProfilerBundle toolbar, and I suspect this is the main use-case for the profiler. The toolbar is only injected for HTTP requests, but the profiler runs and applies its overheads during CLI operations (console commands) also. I suggest there should be an option to control whether profiling is performed for CLI requests, and that it should be disabled by default in the CLI environment (BC break).

Example

framework:
  profiler:
    cli: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy