Skip to content
Integration of basic metrics for Newrelic into Nette.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.gitignore
.scrutinizer.yml
.travis.yml
README.md
composer.json
license.md
phpstan.neon

README.md

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')->run();
You can’t perform that action at this time.