PHPackages                             slavawins/laravel-profiler-deep - 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. slavawins/laravel-profiler-deep

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

slavawins/laravel-profiler-deep
===============================

Expa

0.2.2(3y ago)0577MITPHPPHP ^7.3|^8.0

Since Feb 24Pushed 3y ago1 watchersCompare

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

READMEChangelog (3)DependenciesVersions (5)Used By (0)

[![](info/logo.jpg)](info/logo.jpg)

ProfilerDeep
------------

[](#profilerdeep)

Кароч изи пакет

Установка из composer
---------------------

[](#установка-из-composer)

Ничего дополнительно копировать не нужно.

```
composer require slavawins/laravel-profiler-deep

```

Использование
-------------

[](#использование)

Используется просто, на фасадах.

### Оценка и сравнение нескольких участков кода.

[](#оценка-и-сравнение-нескольких-участков-кода)

Допустим вы хотите увидеть только конкертные участки кода, что бы понять какой выполняется медленнее.

Env:

```
PROFILER_DEEP_ENABLE=true

```

Код в любом месте проекта:

```
ProfilerDeepFacade::AddPart("header");
//yor slow shid code

ProfilerDeepFacade::AddPart("firstpart");
//yor slow shid code

ProfilerDeepFacade::AddPart("Part code 3");
//yor slow shid code

ProfilerDeepFacade::Stop();
dump(ProfilerDeepFacade::ResultParts());

+--------------------------------------------------------------------+
|    Time CPU    |    Time SQL     |            Part name            |
+--------------------------------------------------------------------+
|    0.03 sec.   |   0.0044 sec.   |   header  EmitTestCommand:53    |
|    0.01 sec.   |   0.0025 sec.   |  firstpart  EmitTestCommand:59  |
|    0.01 sec.   |   0.0053 sec.   | Part code 3 EmitTestCommand:120 |
+--------------------------------------------------------------------+

```

#### ProfilerDeepFacade::ResultParts()

[](#profilerdeepfacaderesultparts)

Показывает время по частям которые были записаны. Возвращает маленьку таблицу с данными

#### ProfilerDeepFacade::ResultPartsSql()

[](#profilerdeepfacaderesultpartssql)

Это тоже самое, но только подробно описаны типы sql запросов

```
**** PROFILLER RESULT: header  EmitTestCommand:53 ****
Общее время CPU: 0.0427 sec.
Общее время SQL: 0.0045 sec.  or 4.52 msec.
Запросы по таблицам
+----------------------------------------------------+
|       Таблица      |     Колв     |      Время     |
+----------------------------------------------------+
|        users       |       1      |     3.92 ms    |
|         tag        |       1      |     0.6 ms     |
+----------------------------------------------------+

Запросы по типу и таблице
+----------------------------------------------------+
|       Таблица      |     Колв     |      Время     |
+----------------------------------------------------+
|    insert users    |       1      |     3.92 ms    |
|     select tag     |       1      |     0.6 ms     |
+----------------------------------------------------+

Запросы по типу
+----------------------------------------------------+
|       Таблица      |     Колв     |      Время     |
+----------------------------------------------------+
|       insert       |       1      |     3.92 ms    |
|       select       |       1      |     0.6 ms     |
+----------------------------------------------------+

**** PROFILLER RESULT: firstpart  EmitTestCommand:59 ****
Общее время CPU: 0.0115 sec.
Общее время SQL: 0.002 sec.  or 1.96 msec.
Запросы по таблицам
+----------------------------------------------+
|      Таблица     |    Колв    |     Время    |
+----------------------------------------------+
|       users      |      4     |    1.96 ms   |
+----------------------------------------------+

Запросы по типу и таблице
+----------------------------------------------+
|      Таблица     |    Колв    |     Время    |
+----------------------------------------------+
|   select users   |      4     |    1.96 ms   |
+----------------------------------------------+

Запросы по типу
+----------------------------------------------+
|      Таблица     |    Колв    |     Время    |
+----------------------------------------------+
|      select      |      4     |    1.96 ms   |
+----------------------------------------------+

**** PROFILLER RESULT: MovePlayFor  EmitTestCommand:120 ****
Общее время CPU: 0.0117 sec.
Общее время SQL: 0.005 sec.  or 4.96 msec.
Запросы по таблицам
+----------------------------------------------------------+
|        Таблица       |      Колв      |       Время      |
+----------------------------------------------------------+
|         users        |        2       |      4.27 ms     |
|        scores        |        1       |      0.35 ms     |
|    users_inventor    |        1       |      0.34 ms     |
+----------------------------------------------------------+

Запросы по типу и таблице
+-----------------------------------------------------------+
|        Таблица        |      Колв      |       Время      |
+-----------------------------------------------------------+
|     update users      |        2       |      4.27 ms     |
|     delete scores     |        1       |      0.35 ms     |
| delete users_inventor |        1       |      0.34 ms     |
+-----------------------------------------------------------+

Запросы по типу
+----------------------------------------------------+
|       Таблица      |     Колв     |      Время     |
+----------------------------------------------------+
|       update       |       2      |     4.27 ms    |
|       delete       |       2      |     0.69 ms    |
+----------------------------------------------------+

```

#### ProfilerDeepFacade::Stop();

[](#profilerdeepfacadestop)

Можно в ручную останавливать запись партов. Но вообще оно само вызывает Stop() при записи нового парта.

```
ProfilerDeepFacade::AddPart("header");
//yor slow shid code
ProfilerDeepFacade::Stop();

//yor slow shid code

ProfilerDeepFacade::AddPart("firstpart");
//yor slow shid code

ProfilerDeepFacade::AddPart("Part code 3");
//yor slow shid code
ProfilerDeepFacade::Stop();

//yor slow shid code
ProfilerDeepFacade::Stop();
dump(ProfilerDeepFacade::ResultParts());

```

#### ProfilerDeepFacade::ResultPartsSqlFromAllParts();

[](#profilerdeepfacaderesultpartssqlfromallparts)

Возвращает лог по всем партам. То есть суммированый лог.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Every ~0 days

Total

4

Last Release

1179d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2649beaaa049a18acd6c6636c6cd9ae24269d9d8925ec65d2b2a2aa11f73df47?d=identicon)[slavaWins](/maintainers/slavaWins)

---

Top Contributors

[![slavaWins](https://avatars.githubusercontent.com/u/36732624?v=4)](https://github.com/slavaWins "slavaWins (7 commits)")

### Embed Badge

![Health badge](/badges/slavawins-laravel-profiler-deep/health.svg)

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

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)

PHPackages © 2026

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