File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/phpunit/phpunit/src/Event/Value/Telemetry
Upload
[..]
Duration.php (3.46 KB)
Edit
Rename
Del
GarbageCollectorStatus.php (2.66 KB)
Edit
Rename
Del
GarbageCollectorStatusProvider.php (597 B)
Edit
Rename
Del
HRTime.php (2.52 KB)
Edit
Rename
Del
Info.php (2.38 KB)
Edit
Rename
Del
MemoryMeter.php (625 B)
Edit
Rename
Del
MemoryUsage.php (864 B)
Edit
Rename
Del
Snapshot.php (1.48 KB)
Edit
Rename
Del
StopWatch.php (561 B)
Edit
Rename
Del
System.php (1.4 KB)
Edit
Rename
Del
SystemGarbageCollectorStatusProvider.php (1.16 KB)
Edit
Rename
Del
SystemMemoryMeter.php (874 B)
Edit
Rename
Del
SystemStopWatch.php (791 B)
Edit
Rename
Del
SystemStopWatchWithOffset.php (1.17 KB)
Edit
Rename
Del
Edit: MemoryUsage.php
<?php declare(strict_types=1); /* * This file is part of PHPUnit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPUnit\Event\Telemetry; /** * @immutable * * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit */ final readonly class MemoryUsage { private int $bytes; public static function fromBytes(int $bytes): self { return new self($bytes); } private function __construct(int $bytes) { $this->bytes = $bytes; } public function bytes(): int { return $this->bytes; } public function diff(self $other): self { return self::fromBytes($this->bytes - $other->bytes); } }
Simpan