2017 © Pedro Peláez
 

symfony-bundle pinba-bundle

Collects and sends execution time of Doctrine queries, Twig renders and Memcache requests as pinba timers to pinba server

image

intaro/pinba-bundle

Collects and sends execution time of Doctrine queries, Twig renders and Memcache requests as pinba timers to pinba server

  • Monday, February 12, 2018
  • by muxx
  • Repository
  • 8 Watchers
  • 19 Stars
  • 45,708 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 8 Forks
  • 4 Open issues
  • 12 Versions
  • 7 % Grown

The README.md

PinbaBundle

CI, (*1)

About

PinbaBundle is Symfony bundle for pinba., (*2)

Important! Include this bundle only in `prod` environment.

It collects and sends times of execution for Doctrine queries, Twig renders and Redis requests as pinba timers to pinba server. You can watch collected realtime metrics in Intaro Pinboard. Example of output:, (*3)

Pinba timers in Intaro Pinboard, (*4)

Also PinbaBundle changes pinba script_name variable to request_uri value otherwise pinba sends app.php in script_name for the requests., (*5)

Installation

PinbaBundle requires Symfony 4.4 or higher., (*6)

Require the bundle in your composer.json file:, (*7)

{
    "require": {
        "intaro/pinba-bundle": "^2.0",
    }
}

Important! Register the bundle in prod environment:, (*8)

// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        //...
    ];

    if ('prod' === $this->environment) {
        $bundles[] = new Intaro\PinbaBundle\IntaroPinbaBundle();
    }

    //...
}

Install the bundle:, (*9)

$ composer update intaro/pinba-bundle

Usage

Configure script_name

PinbaBundle automatically configures script_name variable of pinba., (*10)

Collecting Twig metrics

PinbaBundle automatically collects metrics for Twig renders., (*11)

Collecting Doctrine metrics

Edit app/config/config_prod.yml and add this lines:, (*12)

doctrine:
    dbal:
        logging: true

Don't worry. This config enables pinba logger which collects only queries execution time but not logs them., (*13)

Development

Run tests

Install vendors:, (*14)

make vendor

Run php-cs-fixer, phpstan and phpunit:, (*15)

make check

The Versions

12/02 2018

dev-master

9999999-dev

Collects and sends execution time of Doctrine queries, Twig renders and Memcache requests as pinba timers to pinba server

  Sources   Download

MIT

The Requires

 

php symfony2 pinba

12/02 2018

1.0.2

1.0.2.0

Collects and sends execution time of Doctrine queries, Twig renders and Memcache requests as pinba timers to pinba server

  Sources   Download

MIT

The Requires

 

php symfony2 pinba

18/02 2017

1.0.1

1.0.1.0

Collects and sends execution time of Doctrine queries, Twig renders and Memcache requests as pinba timers to pinba server

  Sources   Download

MIT

The Requires

 

php symfony2 pinba

19/09 2016

1.0.0

1.0.0.0

Collects and sends execution time of Doctrine queries, Twig renders and Memcache requests as pinba timers to pinba server

  Sources   Download

MIT

The Requires

 

php symfony2 pinba

25/08 2015

0.4.4

0.4.4.0

Collects and sends execution time of Doctrine queries, Twig renders and Memcache requests as pinba timers to pinba server

  Sources   Download

MIT

The Requires

 

php symfony2 pinba

08/06 2015

0.4.3

0.4.3.0

Collects and sends execution time of Doctrine queries, Twig renders and Memcache requests as pinba timers to pinba server

  Sources   Download

MIT

The Requires

 

php symfony2 pinba

05/08 2014

0.4.2

0.4.2.0

Collects and sends execution time of Doctrine queries, Twig renders and Memcache requests as pinba timers to pinba server

  Sources   Download

MIT

The Requires

 

php symfony2 pinba

29/07 2014

0.4.1

0.4.1.0

Collects and sends execution time of Doctrine queries, Twig renders and Memcache requests as pinba timers to pinba server

  Sources   Download

MIT

The Requires

 

php symfony2 pinba

22/05 2014

0.4

0.4.0.0

Collects and sends execution time of Doctrine queries, Twig renders and Memcache requests as pinba timers to pinba server

  Sources   Download

MIT

The Requires

 

php symfony2 pinba

18/05 2014

0.3

0.3.0.0

Collects and sends execution time of Doctrine queries, Twig renders and Memcache requests as pinba timers to pinba server

  Sources   Download

MIT

The Requires

 

php symfony2 pinba

05/05 2014

0.2

0.2.0.0

Collects and sends execution time of Doctrine queries, Twig renders and Memcache requests as pinba timers to pinba server

  Sources   Download

MIT

The Requires

 

php symfony2 pinba

04/05 2014

0.1

0.1.0.0

Collects and sends execution time of Doctrine queries, Twig renders and Memcache requests as pinba timers to pinba server

  Sources   Download

MIT

The Requires

 

php symfony2 pinba