ProfileTimings
API reference › Debug Core › Panel › Profile › ProfileTimings
Pairs profile begin/end log tuples into per-block timings.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
calculate() static | Calculates the per-block timings from profile-level log tuples. | ProfileTimings |
Method details
Section titled “Method details”calculate()
Section titled “calculate() ”public static function calculate(list<PHPForge\Debug\Panel\Profile\LogTuple> $messages): list<PHPForge\Debug\Panel\Profile\ProfileTiming>Calculates the per-block timings from profile-level log tuples.
Each tuple is [token, level, category, timestamp, traces, memory]; a begin marker is matched with the next end
marker carrying the same token, producing one timing entry ordered by the begin position.
Parameters
| Parameter | Type | Description |
|---|---|---|
$messages | list<PHPForge\ | Profile log tuples in capture order. |
Returns
list<PHPForge\Debug\Panel\Profile\ProfileTiming>: Timings ordered by their begin marker.