Download the PHP package ernestobaezf/laravel-apm without Composer
On this page you can find all versions of the php package ernestobaezf/laravel-apm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ernestobaezf/laravel-apm
More information about ernestobaezf/laravel-apm
Files in ernestobaezf/laravel-apm
Package laravel-apm
Short Description Application performance monitor (APM) for Laravel.
License MIT
Homepage https://github/ernestobaezf/laravel-apm-php
Informations about the package laravel-apm
Laravel APM
A tool to index profiling data to different sources.
This php package is inspired in twlogger which was used a base to implement this package.
Requirements
- Tideways to actually profile the data.
Installation
composer require ernestobaezf/laravel-apm-php
Configuration
Coming
Use case
Coming
Profile a CLI Script
The simplest way to profile a CLI is to use
external/header.php
. external/header.php
is designed to be combined with PHP's
auto_prepend_file
directive. You can enable auto_prepend_file
system-wide
through php.ini
. Alternatively,
you can enable include the header.php
at the top of your script:
You can alternatively use the -d
flag when running php:
Saving & Importing Profiles
Be aware of file locking: depending on your workload, you may need to
change the save.handler.filename
file path to avoid file locking
during the import.
The following demonstrate the use of external/import.php
:
Warning: Importing the same file twice will index twice, resulting in duplicate profiles
License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.