Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Option to disable profiler in CLI environment #45241

Closed
@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