PHPackages                             lsys/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. lsys/profiler

ActiveLibrary

lsys/profiler
=============

lsys module profiler

0.0.1(5y ago)03782Apache-2.0PHPCI failing

Since Jul 24Pushed 5y agoCompare

[ Source](https://github.com/php-lsys/profiler)[ Packagist](https://packagist.org/packages/lsys/profiler)[ RSS](/packages/lsys-profiler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (2)Used By (2)

代码执行性能分析
========

[](#代码执行性能分析)

[![Build Status](https://camo.githubusercontent.com/82f3e59706912e3a394df8b8897d005a0416d570173a833642c81f149a05cd5b/68747470733a2f2f7472617669732d63692e636f6d2f7068702d6c7379732f70726f66696c65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/php-lsys/profiler)[![Coverage Status](https://camo.githubusercontent.com/734172d1e9dc91feda69ec8280e710aa26d788ad1ee21c1941f3c44c7484e537/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7068702d6c7379732f70726f66696c65722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/php-lsys/profiler?branch=master)

> 查看代码执行时间及运行时的内存使用情况

1. 添加分析代码

```
$p=\LSYS\Profiler\DI::get()->profiler();
$token=$p->start("组1","测试1");
//这里写你的代码
isset($token)&&$p->stop($token);

```

2. 输出分析结果,支持控制台输出,HTML输出等.已实现输出方式 参阅:src/classes/LSYS/Profiler/Handler

```
$hander= new Html(true);
$html=Utils::render($hander);

```

使用示例参阅:dome/

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

2115d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f1652fec3beae86de90c6615dd28be4729251e1b2bb08f1cd18e8193e6c4e48?d=identicon)[lsys](/maintainers/lsys)

---

Top Contributors

[![shanliu](https://avatars.githubusercontent.com/u/2927231?v=4)](https://github.com/shanliu "shanliu (11 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lsys-profiler/health.svg)

```
[![Health](https://phpackages.com/badges/lsys-profiler/health.svg)](https://phpackages.com/packages/lsys-profiler)
```

PHPackages © 2026

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