Gauge
API reference › Debug Core › Helper › Gauge
Renders the inline micro-gauge rail behind numeric readouts (History Duration/Memory, Profiling Duration).
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
render() static | Wraps a formatted readout in a micro-gauge scaled to current / max, clamped to 0%..100%. | Gauge |
Method details
Section titled “Method details”render()
Section titled “render() ”public static function render(string $value, float $current, float $max): stringWraps a formatted readout in a micro-gauge scaled to current / max, clamped to 0%..100%.
Parameters
| Parameter | Type | Description |
|---|---|---|
$value | string | Pre-formatted readout text (for example 125 ms). |
$current | float | Row value in the same unit as $max. |
$max | float | Capture maximum the rail is scaled against. |
Returns
string: Gauge markup or the original value when no scale is available.