Simple profiler provides a simple and configurable way to profile your code.
Add library to your Composer project:
composer require ivol/simple-profiler
Check tests/src/Integration/IntegrationTest.php for usage example.
simple-profiler is released under the MIT License.