Download the PHP package upscale/swoole-blackfire without Composer
On this page you can find all versions of the php package upscale/swoole-blackfire. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download upscale/swoole-blackfire
More information about upscale/swoole-blackfire
Files in upscale/swoole-blackfire
Package swoole-blackfire
Short Description Blackfire profiler integration for Swoole web-server
License Apache-2.0
Homepage https://github.com/upscalesoftware/swoole-blackfire
Informations about the package swoole-blackfire
Blackfire Profiler for Swoole
This library enables profiling of PHP applications running on Swoole / Open Swoole web-server via Blackfire.
Features:
- Transparent request profiling
- Selective sub-system profiling
- Custom start/stop profiling calls
- Blackfire Companion integration
Installation
The library is to be installed via Composer as a dev dependency:
Usage
Request Profiling
The easiest way to start profiling is to activate the profiler for all requests from start to finish. This approach is by design completely transparent to an application running on the server. No changes are needed beyond adding a few lines of code to the server entry point.
Install the profiling instrumentation for all requests:
Selective Profiling
It is possible to limit the profiling scope by wrapping the interested code in a profiler call.
Wrap the code intended to be profiled in the profiler call:
Currently, only one profiler inspection call is permitted per request.
Manual Profiling
Depending on the application design and complexity, it may be difficult to precisely wrap desired code in the profiler call. Profiler start/stop calls can be manually placed at different call stack levels to further narrow down the inspection scope. Developer is responsible for the symmetry of the start/stop calls taking into account the response population workflow. The profiling must be stopped before sending the response body to be able to send the results in the response headers.
Surround the code intended to be profiled with the profiler start/stop calls:
Currently, only one pair of the profiler start/stop calls is permitted per request.
Limitations
The profiling implicitly stops before sending the response body and the results are added to the response headers.
Currently, only one profiling session initiated by inspect()
or start/stop()
calls is supported per request.
Contributing
Pull Requests with fixes and improvements are welcome!
License
Copyright © Upscale Software. All rights reserved.
Licensed under the Apache License, Version 2.0.
All versions of swoole-blackfire with dependencies
blackfire/php-sdk Version ^1.16||^2.0
upscale/ext-swoole Version ^4.0||^5.0
upscale/ext-openswoole Version ^4.0||^22.0
upscale/swoole-reflection Version ^2.0||^3.0