ResourceUsageFormatter
in package
FinalYes
Table of Contents
Constants
- SIZES = ['GB' => 1073741824, 'MB' => 1048576, 'KB' => 1024]
Methods
- resourceUsage() : string
- resourceUsageSinceStartOfRequest() : string
- bytesToString() : string
Constants
SIZES
private
mixed
SIZES
= ['GB' => 1073741824, 'MB' => 1048576, 'KB' => 1024]
Tags
Methods
resourceUsage()
public
resourceUsage(Duration $duration) : string
Parameters
- $duration : Duration
Return values
stringresourceUsageSinceStartOfRequest()
public
resourceUsageSinceStartOfRequest() : string
Tags
Return values
stringbytesToString()
private
bytesToString(int $bytes) : string
Parameters
- $bytes : int