ProfileCellRenderer
API reference › Debug Core › Panel › Profile › ProfileCellRenderer
Renders the typed cells of the profile grid for the Profiling debug panel.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
renderCategoryCell() static | Renders the category as the shared Fqcn::renderLabel() two-tone label: muted namespace prefix plus a bold Class::method pair, with the full category preserved in the title attribute. | ProfileCellRenderer |
renderDurationCell() static | Renders the block duration formatted as N.N ms, with a micro-gauge rail scaled against the capture maximum when one exists. | ProfileCellRenderer |
renderInfoCell() static | Renders the info cell with one indentation arrow per nesting level, followed by the info text. | ProfileCellRenderer |
renderTimeCell() static | Renders the capture time as H:i:s.mmm with a full Y-m-d H:i:s.mmm hover tooltip, derived from the row’s millisecond timestamp. | ProfileCellRenderer |
Method details
Section titled “Method details”renderCategoryCell()
Section titled “renderCategoryCell() ”public static function renderCategoryCell(PHPForge\Debug\Panel\Profile\ProfileRow $row): stringRenders the category as the shared Fqcn::renderLabel() two-tone label: muted namespace prefix plus a
bold Class::method pair, with the full category preserved in the title attribute.
renderDurationCell()
Section titled “renderDurationCell() ”public static function renderDurationCell(PHPForge\Debug\Panel\Profile\ProfileRow $row, float $maxDuration): stringRenders the block duration formatted as N.N ms, with a micro-gauge rail scaled against the capture maximum when
one exists.
Parameters
| Parameter | Type | Description |
|---|---|---|
$row | ProfileRow | Typed profile row. |
$maxDuration | float | Capture maximum in milliseconds (ProfileRow::maxDuration()). |
Returns
string
renderInfoCell()
Section titled “renderInfoCell() ”public static function renderInfoCell(PHPForge\Debug\Panel\Profile\ProfileRow $row): stringRenders the info cell with one indentation arrow per nesting level, followed by the info text.
DB command blocks, and any block whose info SqlHighlighter::isStatement() reads as raw SQL, render
through SqlHighlighter::highlight() with the same token spans as the db panel queries grid. Long
statements collapse behind the CellMore clamp instead of stretching the row past the viewport.
renderTimeCell()
Section titled “renderTimeCell() ”public static function renderTimeCell(PHPForge\Debug\Panel\Profile\ProfileRow $row): stringRenders the capture time as H:i:s.mmm with a full Y-m-d H:i:s.mmm hover tooltip, derived from the row’s
millisecond timestamp.