thunder/sampler

Provide Drush 8, 9 and Drupal console commands to sample statistical data for the Thunder performance project.

Installs: 2 790

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 3

Type:drupal-module

dev-master 2020-04-21 09:25 UTC

This package is auto-updated.

Last update: 2020-09-22 08:02:31 UTC


README

This module offers sampling of data for the Thunder performance project.

Prerequisites

Your project should be setup to use composer for installing required modules. Projects, that are differently setup are not supported.

This module provides Drush and Drupal console commands only. If you do not already use either Drush or Drupal console, install one of them before continuing.

See https://docs.drush.org/en/master/install/ and https://drupalconsole.com/docs for more information on how to install them.

Installation

In your project root do:

composer require thunder/sampler

Then enable the sampler module, either with command line or in the admin ui. Flush the caches and you are ready to go.

Usage

Do not use the commands on a production system! It might slow your system down.

In your docroot call either:

drush sampler:report

or

drupal sampler:report

You should see a json containing the sampled data. If you prefer to put the information into a file add a filename as parameter:

drupal sampler:report --file=report.json

This will write the data into the file report.json in your docroot.

By default, the sampler replaces bundle names with generic names. if you want to see the actual bundle names in the report, you can switch the behaviour with the anonymize option:

drupal sampler:report --anonymize=0