Bachir Soussi Chiadmi b32fe9ef14 updated contrib modules | 7 gadi atpakaļ | |
---|---|---|
.. | ||
config | 7 gadi atpakaļ | |
console | 7 gadi atpakaļ | |
css | 8 gadi atpakaļ | |
images | 8 gadi atpakaļ | |
js | 7 gadi atpakaļ | |
src | 7 gadi atpakaļ | |
templates | 7 gadi atpakaļ | |
tests | 7 gadi atpakaļ | |
README.md | 7 gadi atpakaļ | |
composer.json | 7 gadi atpakaļ | |
console.services.yml | 7 gadi atpakaļ | |
webprofiler.info.yml | 7 gadi atpakaļ | |
webprofiler.install | 7 gadi atpakaļ | |
webprofiler.libraries.yml | 7 gadi atpakaļ | |
webprofiler.links.menu.yml | 8 gadi atpakaļ | |
webprofiler.links.task.yml | 8 gadi atpakaļ | |
webprofiler.make.yml | 7 gadi atpakaļ | |
webprofiler.module | 8 gadi atpakaļ | |
webprofiler.permissions.yml | 8 gadi atpakaļ | |
webprofiler.routing.yml | 7 gadi atpakaļ | |
webprofiler.services.yml | 7 gadi atpakaļ |
!! README.md is a work in progress !!
d3.js: Webprofiler module requires D3 library 3.x (not 4.x) to render data.
highlight.js: Webprofiler module requires highlight 9.7.x library to syntax highlight collected queries.
If you use Composer to manage dependencies, edit /composer.json
as follows.
1. Run composer require --prefer-dist composer/installers
to ensure that you have the composer/installers
package installed. This package facilitates the installation of packages into directories other than /vendor
(e.g. /libraries
) using Composer.
2. Add the following to the "installer-paths" section of composer.json
:
"libraries/{$name}": ["type:drupal-library"],
3. Add the following to the "repositories" section of composer.json
:
"d3": {
"type": "package",
"package": {
"name": "d3/d3",
"version": "v3.5.17",
"type": "drupal-library",
"dist": {
"url": "https://github.com/d3/d3/archive/v3.5.17.zip",
"type": "zip"
}
}
},
"highlightjs": {
"type": "package",
"package": {
"name": "components/highlightjs",
"version": "9.7.0",
"type": "drupal-library",
"dist": {
"url": "https://github.com/components/highlightjs/archive/9.7.0.zip",
"type": "zip"
}
}
}
4. Run composer require --prefer-dist d3/d3:3.5.* components/highlightjs:9.7.*
- you should find that new directories have been created
under /libraries
d3.js:
/libraries/d3/
directory below your Drupal root directory/libraries/d3/d3.min.js
For further details on how to obtain D3.js, see https://github.com/d3/d3/
highlight.js:
/libraries/highlightjs/
directory below your Drupal root directoryEach class name discovered while profiling (controller class, event class) is specially linked to open the class in an IDE. You can configure the URLs for these links to work for your IDE.
See https://github.com/dhoulb/subl
Use txmt://open?url=file://@file&line=@line
Use phpstorm://open?file=@file&line=@line
It is also possible to collect the time needed to instantiate every single service used in a request.
Add the following two lines to settings.php
(or, even better, to settings.local.php
):
$class_loader->addPsr4('Drupal\\webprofiler\\', [ __DIR__ . '/../../modules/contrib/devel/webprofiler/src']);
$settings['container_base_class'] = '\Drupal\webprofiler\DependencyInjection\TraceableContainer';
Check if the path from the Webprofiler module in your settings.php
file matches the location of the installed Webprofiler module in your project.