EventSequence
API reference › Debug Core › Panel › Event › EventSequence
Derives chronology from the complete capture before filtering, sorting, or pagination.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Derives the chronology from the complete capture. | EventSequence |
elapsed() | Returns how long after the first captured event the given row fired. | EventSequence |
gap() | Returns the idle time between the given row and the one observed before it. | EventSequence |
index() | Returns the original observation position of the given row. | EventSequence |
interval() | Returns only unambiguous, explicitly correlated inclusive intervals. | EventSequence |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(list<PHPForge\Debug\Panel\Event\EventRow> $rows)Derives the chronology from the complete capture.
Parameters
| Parameter | Type | Description |
|---|---|---|
$rows | list<EventRow> | Original observation order. |
elapsed()
Section titled “elapsed() ”public function elapsed(PHPForge\Debug\Panel\Event\EventRow $row): floatReturns how long after the first captured event the given row fired.
Parameters
| Parameter | Type | Description |
|---|---|---|
$row | EventRow | Row to measure. |
Returns
float: Offset from the first captured row, in milliseconds.
gap()
Section titled “gap() ”public function gap(PHPForge\Debug\Panel\Event\EventRow $row): float|nullReturns the idle time between the given row and the one observed before it.
Parameters
| Parameter | Type | Description |
|---|---|---|
$row | EventRow | Row to measure. |
Returns
float|null: Milliseconds since the previous row, or null for the first row and for unknown rows.
index()
Section titled “index() ”public function index(PHPForge\Debug\Panel\Event\EventRow $row): intReturns the original observation position of the given row.
Parameters
| Parameter | Type | Description |
|---|---|---|
$row | EventRow | Row to locate. |
Returns
int: One-based capture position, or 0 when the row is not part of the capture.
interval()
Section titled “interval() ”public function interval(PHPForge\Debug\Panel\Event\EventRow $row): float|nullReturns only unambiguous, explicitly correlated inclusive intervals.
Parameters
| Parameter | Type | Description |
|---|---|---|
$row | EventRow | Lifecycle enter marker to measure. |
Returns
float|null: Inclusive duration in milliseconds, or null when the correlation is absent or ambiguous.