Skip to content
PHP Ecosystem
Explore

ProfileCellRenderer

API reference › Debug Core › Panel › Profile › ProfileCellRenderer

final classPHPForge\Debug\Panel\Profile\ProfileCellRenderer
Sourcesrc/Panel/Profile/ProfileCellRenderer.php

Renders the typed cells of the profile grid for the Profiling debug panel.

MethodDescriptionDefined by
renderCategoryCell() staticRenders 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() staticRenders the block duration formatted as N.N ms, with a micro-gauge rail scaled against the capture maximum when one exists.ProfileCellRenderer
renderInfoCell() staticRenders the info cell with one indentation arrow per nesting level, followed by the info text.ProfileCellRenderer
renderTimeCell() staticRenders 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
public static function renderCategoryCell(PHPForge\Debug\Panel\Profile\ProfileRow $row): string

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.

Parameters

ParameterTypeDescription
$rowProfileRow

Returns

string

public static function renderDurationCell(PHPForge\Debug\Panel\Profile\ProfileRow $row, float $maxDuration): string

Renders the block duration formatted as N.N ms, with a micro-gauge rail scaled against the capture maximum when one exists.

Parameters

ParameterTypeDescription
$rowProfileRowTyped profile row.
$maxDurationfloatCapture maximum in milliseconds (ProfileRow::maxDuration()).

Returns

string

public static function renderInfoCell(PHPForge\Debug\Panel\Profile\ProfileRow $row): string

Renders 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.

Parameters

ParameterTypeDescription
$rowProfileRowTyped profile row.

Returns

string

public static function renderTimeCell(PHPForge\Debug\Panel\Profile\ProfileRow $row): string

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.

Parameters

ParameterTypeDescription
$rowProfileRow

Returns

string