damejidlo/newrelic

Newrelic integration into Nette Framework

Installs: 49 039

Dependents: 0

Suggesters: 0

Stars: 11

Watchers: 13

Forks: 1

2.0.3 2018-06-15 12:29 UTC

README

Downloads this Month Latest Stable Version

Install

composer require damejidlo/newrelic

Configure

  1. In your BasePresenter add use PresenterProfiler;.
  2. Into index.php put $_ENV settings (something like this):
<?php

$_ENV['REQUEST_TIME_FLOAT'] = microtime(TRUE);

$container = require __DIR__ . '/../app/bootstrap.php';

$_ENV['COMPILATION_TIME_FLOAT'] = microtime(TRUE);

$container->getByType(\Nette\Application\Application::class)->run();