class System
Same name in this branch
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
@internal This class is not covered by the backward compatibility promise for PHPUnit
Hierarchy
- class \PHPUnit\Event\Telemetry\System
Expanded class hierarchy of System
84 string references to 'System'
- Action::fields in core/
modules/ system/ src/ Plugin/ migrate/ source/ Action.php - Returns available fields on the source.
- Action::prepareRow in core/
modules/ system/ src/ Plugin/ migrate/ source/ Action.php - Adds additional data to the row.
- action_settings.yml in core/
modules/ system/ migrations/ action_settings.yml - core/modules/system/migrations/action_settings.yml
- authorize.php in core/
authorize.php - Administrative script for running authorized file operations.
- block.block.claro_breadcrumbs.yml in core/
themes/ claro/ config/ optional/ block.block.claro_breadcrumbs.yml - core/themes/claro/config/optional/block.block.claro_breadcrumbs.yml
File
-
vendor/
phpunit/ phpunit/ src/ Event/ Value/ Telemetry/ System.php, line 17
Namespace
PHPUnit\Event\TelemetryView source
final class System {
private readonly StopWatch $stopWatch;
private readonly MemoryMeter $memoryMeter;
private readonly GarbageCollectorStatusProvider $garbageCollectorStatusProvider;
public function __construct(StopWatch $stopWatch, MemoryMeter $memoryMeter, GarbageCollectorStatusProvider $garbageCollectorStatusProvider) {
$this->stopWatch = $stopWatch;
$this->memoryMeter = $memoryMeter;
$this->garbageCollectorStatusProvider = $garbageCollectorStatusProvider;
}
public function snapshot() : Snapshot {
return new Snapshot($this->stopWatch
->current(), $this->memoryMeter
->memoryUsage(), $this->memoryMeter
->peakMemoryUsage(), $this->garbageCollectorStatusProvider
->status());
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
System::$garbageCollectorStatusProvider | private | property | |
System::$memoryMeter | private | property | |
System::$stopWatch | private | property | |
System::snapshot | public | function | |
System::__construct | public | function |