Skip to content
PHP Ecosystem
Explore

EventSequence

API reference › Debug Core › Panel › Event › EventSequence

final readonly classPHPForge\Debug\Panel\Event\EventSequence
Sourcesrc/Panel/Event/EventSequence.php

Derives chronology from the complete capture before filtering, sorting, or pagination.

MethodDescriptionDefined 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
public function __construct(list<PHPForge\Debug\Panel\Event\EventRow> $rows)

Derives the chronology from the complete capture.

Parameters

ParameterTypeDescription
$rowslist<EventRow>Original observation order.
public function elapsed(PHPForge\Debug\Panel\Event\EventRow $row): float

Returns how long after the first captured event the given row fired.

Parameters

ParameterTypeDescription
$rowEventRowRow to measure.

Returns

float: Offset from the first captured row, in milliseconds.

public function gap(PHPForge\Debug\Panel\Event\EventRow $row): float|null

Returns the idle time between the given row and the one observed before it.

Parameters

ParameterTypeDescription
$rowEventRowRow to measure.

Returns

float|null: Milliseconds since the previous row, or null for the first row and for unknown rows.

public function index(PHPForge\Debug\Panel\Event\EventRow $row): int

Returns the original observation position of the given row.

Parameters

ParameterTypeDescription
$rowEventRowRow to locate.

Returns

int: One-based capture position, or 0 when the row is not part of the capture.

public function interval(PHPForge\Debug\Panel\Event\EventRow $row): float|null

Returns only unambiguous, explicitly correlated inclusive intervals.

Parameters

ParameterTypeDescription
$rowEventRowLifecycle enter marker to measure.

Returns

float|null: Inclusive duration in milliseconds, or null when the correlation is absent or ambiguous.