• PHP reference
  • Helpers

Benchmarks

class Services\Debug\Benchmarks

Class Benchmarks.

Properties

static array $benchmarks

An array of all end times of benchmarks.

static array $benchStarts

An array of all start times of benchmarks.

Methods

static start(string $name)

Start benchmark timer.

Parameters

  • string $name Benchmark name

static end(string $name, boolean $output = false)

End benchmark timer.

Parameters

  • string $name Benchmark name
  • boolean $output Whether to output as a JS/CSS comment