PHPackages                             aterrien/forp-profiler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. aterrien/forp-profiler

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

aterrien/forp-profiler
======================

A PHP profiler written in C. forp is a lightweight PHP extension which provides the full call stack of your script, with CPU and memory usage, in a plain PHP Array or JSON output.

1.1.0(11y ago)32919028[9 issues](https://github.com/aterrien/forp-PHP-profiler/issues)MITCPHP &gt;=5.3

Since Oct 12Pushed 7y ago21 watchersCompare

[ Source](https://github.com/aterrien/forp-PHP-profiler)[ Packagist](https://packagist.org/packages/aterrien/forp-profiler)[ Docs](https://github.com/aterrien/forp-PHP-profiler)[ RSS](/packages/aterrien-forp-profiler/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Introduction
============

[](#introduction)

forp is a lightweight PHP extension which provides PHP profile datas.

Summary of features :

- measurement of time and allocated memory for each function
- CPU usage
- file and line number of the function call
- output as Google's Trace Event format
- caption of functions
- grouping of functions
- aliases of functions (useful for anonymous functions)

forp is non intrusive, it provides PHP annotations to do its work.

Simple (almost the most complicated) example
============================================

[](#simple-almost-the-most-complicated-example)

Example :

```
