src/Viserio/Component/Profiler/Profile.php
public function getCollector(string $name): DataCollectorContract
    {
        if (! isset($this->collectors[$name])) {
            throw new CollectorNotFoundException(\sprintf('Collector [%s] not found.', $name));
        }

        return $this->collectors[$name];
    }
public function getCollector(string $name): DataCollectorContract
    {
        if (! isset($this->collectors[$name])) {
            throw new CollectorNotFoundException(\sprintf('Collector [%s] not found.', $name));
        }

        return $this->collectors[$name];
    }
Gets a Collector by name.

@param string $name A collector name

@throws \Viserio\Component\Contract\Profiler\Exception\CollectorNotFoundException if the collector does not exist

@return \Viserio\Component\Contract\Profiler\DataCollector