Skip to content

Reset Profiler data after each request for PHP-PM #18244

Closed
@marcj

Description

@marcj

Hi!

I'm currently trying to optimize Symfony usage in https://github.com/php-pm/php-pm.

One of those optimizations is to get the correct debugging information in the profiler. Currently after each request only the execution time is correctly calculated. All other stuff like logs, template render times, query logging etc are not reseted after Kernel::terminate(). What we currently do is along these lines: https://github.com/php-pm/php-pm-httpkernel/blob/master/Bootstraps/Symfony.php#L71-L100
I know it's a hack and don't get any support through semver as we hack into the object, but for the moment the only fast way to get things working. If it's working we could provide a pull requests to get this inside Symfony with well defined interfaces.

First Request:
screen shot 2016-03-21 at 00 24 13

9th Request
screen shot 2016-03-21 at 00 20 13

Any ideas?

//Edit
We get for each new request a new Debug-Token, as expected.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions