Skip to content
PHP Ecosystem
Explore

ProvidesMemorySamples

API reference › Debug › panels › ProvidesMemorySamples

interfaceyii\debug\panels\ProvidesMemorySamples
Sourcesrc/panels/ProvidesMemorySamples.php
Implemented by 2 types

Contract for panels that feed the Profiling timeline memory graph.

ProfilingPanel plots its own samples and appends those of the panel registered under the log id when that panel implements this interface, so a replacement Log panel keeps contributing readings to the graph.

MethodDescriptionDefined by
getMemorySamples() abstractReturns the memory readings this panel contributes to the Timeline graph.ProvidesMemorySamples
abstract public function getMemorySamples(): list<PHPForge\Debug\Panel\MemorySample>

Returns the memory readings this panel contributes to the Timeline graph.

Returns

list<PHPForge\Debug\Panel\MemorySample>: Samples in capture order.