I did a devel/webprofiler install on a Drupal 8 8.0.3 fresh install and the Timeline is not showing data

CommentFileSizeAuthor
webprofiler-timeline.png155.62 KBjmolivas
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jmolivas created an issue. See original summary.

lussoluca’s picture

Hi Jesus,
maybe you need to install D3.js, see README.md

jmolivas’s picture

Hi lussoluca,

Library D3.js was missing also HighlightJS. I already take care of loading both on my local, but no data showed yet.

tree libraries/ output:

libraries/
├── d3
│   └── d3.min.js
└── highlight
    └── highlight.pack.js
lussoluca’s picture

Have you setup the container_base_class setting in settings.php? From webprofiler readme:

#Timeline:

Now it is possible to also collect the time needed to instantiate every single service used in a request, to make it
work you need to add this two lines to settings.php (or, event better, to settings.local.php):

```
$class_loader->addPsr4('Drupal\\webprofiler\\', [ __DIR__ . '/../../modules/contrib/devel/webprofiler/src']);
$settings['container_base_class'] = '\Drupal\webprofiler\DependencyInjection\TraceableContainer';
```

salvis’s picture

Status: Active » Fixed

No follow-up.

(@lussoluca: Please change

add this two lines to settings.php (or, event better,

to

add these two lines to settings.php (or, even better,

when you get a chance.)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

dman’s picture

Graphs don't seem to run using the current D3 library - version 4 - referred to in the D3 Repository README.

Saving https://d3js.org/d3.v3.min.js
into libraries/d3/d3.min.js
(as well as inserting the above lines into my local.settings.php)
Started this working for me.

zoiosilva’s picture

Title: [webrofiler] Timeline not showing data » [webprofiler] Timeline not showing data