Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: More collectors : Doctrine, Twig,.. #58

Open
eMerzh opened this issue Oct 25, 2015 · 1 comment
Open

Feature: More collectors : Doctrine, Twig,.. #58

eMerzh opened this issue Oct 25, 2015 · 1 comment

Comments

@eMerzh
Copy link

eMerzh commented Oct 25, 2015

I saw the dbal collector,
it could be really cool to add time to the collector too (maybe using stopwatch?)
and could also be really awesome to have a twig profiler (like memory? time?)

with that we can make info like:
"your average req time is 200ms, with 100ms of DB calls, 50 ms of twig rendering and 50 ms of other php stuffs."

i try to look for a hint to follow, but i'm really not sure :s

Thanks :)

@dav-m85
Copy link
Collaborator

dav-m85 commented Oct 30, 2015

Hi @eMerzh, have you looked into MemoryStatsCollector and TimeStatsCollector ? They seem to do what you're looking for.

I have trouble figuring out what a generic twig profiler could look like, but if you have some specific case to implement, I encourage you to extend the StatsCollector class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants