src/Viserio/Component/Profiler/Profiler.php
public function addCollector(DataCollectorContract $collector, int $priority = 100): ProfilerContract
    {
        if (isset($this->collectors[$collector->getName()])) {
            throw new RuntimeException(\sprintf('[%s] is already a registered collector.', $collector->getName()));
        }

        $this->collectors[$collector->getName()] = [
            'collector' => $collector,
            'priority'  => $priority,
        ];

        return $this;
    }
public function addCollector(DataCollectorContract $collector, int $priority = 100): ProfilerContract
    {
        if (isset($this->collectors[$collector->getName()])) {
            throw new RuntimeException(\sprintf('[%s] is already a registered collector.', $collector->getName()));
        }

        $this->collectors[$collector->getName()] = [
            'collector' => $collector,
            'priority'  => $priority,
        ];

        return $this;
    }
{@inheritdoc}