PHPackages                             zhudesheng/performance-analyze-forphp - 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. zhudesheng/performance-analyze-forphp

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

zhudesheng/performance-analyze-forphp
=====================================

this is performance analyze tool for php 5.4 and higher

1.0.1(7y ago)015MITPHPPHP &gt;=5.4.0

Since Jun 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/williamchu123/PerformanceAnalyzeForphp)[ Packagist](https://packagist.org/packages/zhudesheng/performance-analyze-forphp)[ RSS](/packages/zhudesheng-performance-analyze-forphp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

performance analyze for your php script

### How to use it

[](#how-to-use-it)

it's very simple just like this

```
$pa = PAFactory::getPA(__CLASS__,__METHOD__);
$pa->markStartTime();
$pa->markPoint('do sleep');
$pa->markEndTime();

```

eg .

```
php demo/Demo.php

```

it will output like this

```
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
class = Demo method=Demo::calculate total consumed 5013.3940429688 milliseconds and total used 1.4765625 kb
between "marker_start" and "do loop"
used time 0.2021484375 milliseconds
used memory 0.6640625 kb
----------------------------------------------------------------------------------------------------
between "do loop" and "do sleep"
used time 5013.1108398438 milliseconds
used memory 0.359375 kb
----------------------------------------------------------------------------------------------------
between "do sleep" and "marker_end"
used time 0.0810546875 milliseconds
used memory 0.453125 kb
----------------------------------------------------------------------------------------------------

```

### Contribution

[](#contribution)

If you find a bug or want to contribute to the code or documentation, you can help by submitting an [issue](https://github.com/williamchu123/PerformanceAnalyzeForphp/issues) or a [pull request](https://github.com/williamchu123/PerformanceAnalyzeForphp/pulls).

### License

[](#license)

[MIT](http://opensource.org/licenses/MIT)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2889d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b49b8b1123b2ef9d9dda8310f0e0112f864d056c57e848c608413f9513065bc?d=identicon)[williamchu123](/maintainers/williamchu123)

---

Tags

analyzeperformancephptoolphptoolperformance analyze

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zhudesheng-performance-analyze-forphp/health.svg)

```
[![Health](https://phpackages.com/badges/zhudesheng-performance-analyze-forphp/health.svg)](https://phpackages.com/packages/zhudesheng-performance-analyze-forphp)
```

###  Alternatives

[laracraft-tech/laravel-xhprof

Easy XHProf setup to profile your laravel application!

235321.4k](/packages/laracraft-tech-laravel-xhprof)[bavix/laravel-xhprof

Quick profiling of your code for Laravel

22156.6k](/packages/bavix-laravel-xhprof)[h4cc/phpqatools

A meta composer package for PHP QA Tools.

6418.6k1](/packages/h4cc-phpqatools)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
