| 1 | <?php |
||
| 8 | class BenchmarkFactory |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @param string $name Unique identifier like e.g. Class::Method (\Foobar\MyClass::doSomething) |
||
| 12 | * @param array $metadata Additional metadata |
||
| 13 | * @param string $component Name of the component which triggered the benchmark, e.g. "App", "Database" |
||
| 14 | * @return BenchmarkInterface |
||
| 15 | */ |
||
| 16 | 1 | public static function getBenchmark($name, $metadata = [], $component = null) |
|
| 20 | } |
||
| 21 |