Footprint

The footprint functions provide information about load time and footprint.

request_time

The request_time function returns the elapsed time for the request.

Returns: float
Arguments
Key Required Type Default Description

$decimal

false

integer

2

The number of decimals to return.

Twig
{{ request_time(3) }} // 0.551

memory_usage

The memory_usage function returns the memory used by the request.

Returns: string
Arguments
Key Required Type Default Description

$precision

false

integer

1

The number of decimals to return.

Twig
{{ memory_usage() }} // 6.5 m