src/Statsd/Listener.php
private function dispatchMemory()
    {
        $memory = memory_get_peak_usage(true);
        $memory = ($memory > 1024 ? intval($memory / 1024) : 0);

        $this->eventDispatcher->dispatch(
            'statsd.memory_usage',
            new StatsdEvent($memory)
        );
    }
private function dispatchMemory()
    {
        $memory = memory_get_peak_usage(true);
        $memory = ($memory > 1024 ? intval($memory / 1024) : 0);

        $this->eventDispatcher->dispatch(
            'statsd.memory_usage',
            new StatsdEvent($memory)
        );
    }
dispatchMemory dispatch a memory event