MemorySample
API reference › Debug Core › Panel › MemorySample
One point of the timeline memory chart: when the sample was taken and how much memory was in use.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$memory readonly constructor | int | Memory usage in bytes at that timestamp. | MemorySample |
$time readonly constructor | float | Sample timestamp in milliseconds since the Unix epoch. | MemorySample |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a timestamped memory sample. | MemorySample |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(float $time, int $memory)Creates a timestamped memory sample.
Parameters
| Parameter | Type | Description |
|---|---|---|
$time | float | |
$memory | int |