Skip to content
PHP Ecosystem
Explore

MemorySample

API reference › Debug Core › Panel › MemorySample

final readonly classPHPForge\Debug\Panel\MemorySample
Sourcesrc/Panel/MemorySample.php

One point of the timeline memory chart: when the sample was taken and how much memory was in use.

PropertyTypeDescriptionDefined by
$memory readonly constructorintMemory usage in bytes at that timestamp.MemorySample
$time readonly constructorfloatSample timestamp in milliseconds since the Unix epoch.MemorySample
MethodDescriptionDefined by
__construct()Creates a timestamped memory sample.MemorySample
public function __construct(float $time, int $memory)

Creates a timestamped memory sample.

Parameters

ParameterTypeDescription
$timefloat
$memoryint