public function Profiler::add

Adds a Collector.

Parameters

DataCollectorInterface $collector A DataCollectorInterface instance:

1 call to Profiler::add()
Profiler::set in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/Profiler.php
Sets the Collectors associated with this profiler.

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/Profiler.php, line 214

Class

Profiler
Profiler.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

public function add(DataCollectorInterface $collector) {
  $this->collectors[$collector
    ->getName()] = $collector;
}