Webprofiler toolbar integration for Drupal 8
Webprofiler toolbar integration for Drupal 8
Single image:
03.02.2014
Daniel Wehner
Body:
As someone working on some drupal site you often want to understand what happens on a specific site. This blog post will describe a tool which helps to understand the site faster and easier.
One example you wanna see are the executed database queries. In Drupal 7 we had the wonderful Devel module which showed a list of executed database queries below the page but there are way more information you might want to know:
- PHP Configuration
- The needed time and memory
- List of enabled themes/modules
- Routing information (aka. hook_menu in D7)
- The requested cache/Key-Value data
- Information about the Request raw data
Symfony has a nice toolbar at the bottom
which stores this information, shows it and make it available as separate page
for additional research.
The founder of symfony (fabpot) gave me some
initial version of a drupal integration. Sadly Luca Lusso started independent on a version, so we merged the code together and continue
on https://drupal.org/node/2165731.
So here is out it looks like (click images for larger version):
so you see quite a big amount of integrations already. Let's list what we have at the moment:
- PHP Config
- Request
- Forms
- Database
- Modules/Themes
- Routing
- Cache
- State
- (Config: There is a working branch relying on a core patch: https://drupal.org/node/2184231)
- Your ideas!
You could certainly ask yourself whether this is a total replacement of the devel module. There is an
ongoing discussion at https://drupal.org/node/257770 whether to use the symfony toolbar/an alternative php one.
Please try out the module on Drupal 8 and come up with more ideas and help us.
Schlagworte/Tags:
planet
drupal-planet
dc-planet
dc planet
d8
04.02.2014 erdfisch: Webp… (anonym)
Pingback …
[...] could certainly ask yourself whether …read more Related Posts:Drupal Commerce: How to create a Drupal 8 Toolbar IconUnimity Solutions Drupal Blog: [...]
04.02.2014 Wim Leers (anonym)
Toolbar? …
I installed the module from the sandbox at https://drupal.org/node/2165731, switched to the master branch instead of the default "alternative_backoffice" branch, and I can see the collected profiles. Great :)
However, I was under the impression that I'd get that toolbar that I can see in the screenshots in this article. In which branch does that live? Or does it only exist in patch form yet?
I'd love to contribute to this, but then I need to know a starting point, and that's currently not very clear :)
In reply to Toolbar? by Wim Leers (anonym)
04.02.2014 Daniel Wehner
On the toolbar you can click …
On the toolbar you can click pretty much anywhere, for example the database queries (here the yellow bit). This will link to the full page.
Does that help to answer your question?
I have the feeling that we could really great integrate the following things:
- Used cache tags
- Used css/js/library
Ihr Name
Kommentar/Comment
Save
Leave this field blank