HistoryScale
API reference › Debug Core › View › History › HistoryScale
Typed capture-wide maxima for the History grid’s micro-gauges.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$maxPeakMemory readonly constructor | int | Largest captured peak memory on the page, in bytes; 0 when no row carries one. | HistoryScale |
$maxProcessingTime readonly constructor | float | Largest captured processing time on the page, in seconds; 0.0 when no row carries one. | HistoryScale |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates maxima for the History grid gauges. | HistoryScale |
fromModels() static | Scans the visible rows (ignoring rows without a captured value) and returns the page maxima. | HistoryScale |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(float $maxProcessingTime, int $maxPeakMemory)Creates maxima for the History grid gauges.
Parameters
| Parameter | Type | Description |
|---|---|---|
$maxProcessingTime | float | |
$maxPeakMemory | int |
fromModels()
Section titled “fromModels() ”public static function fromModels(list<PHPForge\Debug\View\History\HistoryRow> $models): selfScans the visible rows (ignoring rows without a captured value) and returns the page maxima.
Parameters
| Parameter | Type | Description |
|---|---|---|
$models | list<HistoryRow> | Rows as supplied by the data provider. |
Returns
self