Skip to content

Performance - list the most-often-analysed trait files in -vvv (DiagnoseExtension) #14073

@ondrejmirtes

Description

@ondrejmirtes

Feature request

Pretty much what the title says. FileAnalyserResult carries list of processed files since phpstan/phpstan-src@8301dbb.

Some work has to be done in WorkerCommand and ParallelAnalyser to carry the list of processed files from parallel run as well.

Then in the end in AnalyseCommand I'd like to print files that were analysed more than one time, print about 5 files with the most number of analyses performed.

This is to detect if other projects have the same problem as Shopware (shopware/shopware#14523) - trait files analysed an excessive number of times.

Did PHPStan help you today? Did it make you happy in any way?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions