Skip to content
PHP Ecosystem
Explore

HistoryScale

API reference › Debug Core › View › History › HistoryScale

final readonly classPHPForge\Debug\View\History\HistoryScale
Sourcesrc/View/History/HistoryScale.php

Typed capture-wide maxima for the History grid’s micro-gauges.

PropertyTypeDescriptionDefined by
$maxPeakMemory readonly constructorintLargest captured peak memory on the page, in bytes; 0 when no row carries one.HistoryScale
$maxProcessingTime readonly constructorfloatLargest captured processing time on the page, in seconds; 0.0 when no row carries one.HistoryScale
MethodDescriptionDefined by
__construct()Creates maxima for the History grid gauges.HistoryScale
fromModels() staticScans the visible rows (ignoring rows without a captured value) and returns the page maxima.HistoryScale
public function __construct(float $maxProcessingTime, int $maxPeakMemory)

Creates maxima for the History grid gauges.

Parameters

ParameterTypeDescription
$maxProcessingTimefloat
$maxPeakMemoryint
public static function fromModels(list<PHPForge\Debug\View\History\HistoryRow> $models): self

Scans the visible rows (ignoring rows without a captured value) and returns the page maxima.

Parameters

ParameterTypeDescription
$modelslist<HistoryRow>Rows as supplied by the data provider.

Returns

self