ResourceUsageFormatter
Table of Contents
-
SIZES
= ['GB' => 1073741824, 'MB' => 1048576, 'KB' => 1024]
-
resourceUsage()
: string
-
resourceUsageSinceStartOfRequest()
: string
-
bytesToString()
: string
SIZES
private
mixed
SIZES
= ['GB' => 1073741824, 'MB' => 1048576, 'KB' => 1024]
-
psalm-var
-
resourceUsage()
public
resourceUsage(Duration $duration) : string
Parameters
-
$duration
: Duration
-
Return values
string
—
resourceUsageSinceStartOfRequest()
public
resourceUsageSinceStartOfRequest() : string
-
throws
-
TimeSinceStartOfRequestNotAvailableException
Return values
string
—
bytesToString()
private
bytesToString(int $bytes) : string
Parameters
-
$bytes
: int
-
Return values
string
—