Download the PHP package t4web/profiler without Composer
On this page you can find all versions of the php package t4web/profiler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download t4web/profiler
More information about t4web/profiler
Files in t4web/profiler
Package profiler
Short Description ZF2 Module. Allow profiling and log slow request
License BSD-3-Clause
Homepage https://github.com/t4web/Profiler
Informations about the package profiler
Profiler
ZF2 Module. Allow profiling and log slow request
Contents
- Introduction
- Installation
- Configuring
- Timers
Introduction
Module for allow profiling page load speed. You can add custom timers for detail analyze page loading workflow.
Installation
Main Setup
By cloning project
Clone this project into your ./vendor/
directory.
With composer
Add this project in your composer.json:
Now tell composer to download T4web\Profiler
by running the command:
Post installation
Enabling it in your application.config.php
file.
T4web\Profiler
require T4web\DefaultService
module.
Configuring
By default profiles not store (using NullAdapter
), for storing page profiles into your DB, you can use DbAdapter
.
Run init script for create profiler
table:
Change default StorageAdapter
:
Or, you can implement T4web\Profiler\StorageAdapter\StorageAdapterInterface
for create own profiler storage.
By default profiler calculate basic ZF2 event execution:
you can disable this like this:
Profiler store request, which execute more than profiling-timeout
option (500ms by default).
Timers
You can add any custom timers. Timer - it's name and execution time.
All versions of profiler with dependencies
zendframework/zend-db Version ^2.5
zendframework/zend-console Version ^2.5
zendframework/zend-eventmanager Version ~2.5.0
zendframework/zend-modulemanager Version ~2.5.0
zendframework/zend-mvc Version ~2.5.0
zendframework/zend-http Version ~2.5.0
zendframework/zend-servicemanager Version ~2.5.0
zendframework/zend-view Version ~2.5.0
t4web/default-service Version ^0.1.0