class Snapshot
Same name in this branch
- 11.1.x vendor/sebastian/global-state/src/Snapshot.php \SebastianBergmann\GlobalState\Snapshot
@psalm-immutable
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Hierarchy
- class \PHPUnit\Event\Telemetry\Snapshot
Expanded class hierarchy of Snapshot
2 string references to 'Snapshot'
- DoctrineCaster::castPersistentCollection in vendor/
symfony/ var-dumper/ Caster/ DoctrineCaster.php - Versions::getChannel in vendor/
composer/ composer/ src/ Composer/ SelfUpdate/ Versions.php
File
-
vendor/
phpunit/ phpunit/ src/ Event/ Value/ Telemetry/ Snapshot.php, line 17
Namespace
PHPUnit\Event\TelemetryView source
final class Snapshot {
private readonly HRTime $time;
private readonly MemoryUsage $memoryUsage;
private readonly MemoryUsage $peakMemoryUsage;
private readonly GarbageCollectorStatus $garbageCollectorStatus;
public function __construct(HRTime $time, MemoryUsage $memoryUsage, MemoryUsage $peakMemoryUsage, GarbageCollectorStatus $garbageCollectorStatus) {
$this->time = $time;
$this->memoryUsage = $memoryUsage;
$this->peakMemoryUsage = $peakMemoryUsage;
$this->garbageCollectorStatus = $garbageCollectorStatus;
}
public function time() : HRTime {
return $this->time;
}
public function memoryUsage() : MemoryUsage {
return $this->memoryUsage;
}
public function peakMemoryUsage() : MemoryUsage {
return $this->peakMemoryUsage;
}
public function garbageCollectorStatus() : GarbageCollectorStatus {
return $this->garbageCollectorStatus;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Snapshot::$garbageCollectorStatus | private | property | |
Snapshot::$memoryUsage | private | property | |
Snapshot::$peakMemoryUsage | private | property | |
Snapshot::$time | private | property | |
Snapshot::garbageCollectorStatus | public | function | |
Snapshot::memoryUsage | public | function | |
Snapshot::peakMemoryUsage | public | function | |
Snapshot::time | public | function | |
Snapshot::__construct | public | function |