public function memory($key, $memory = null, $sampleRate = 1)
    {
        if (null === $memory) {
            $memory = memory_get_peak_usage();
        }
        $this->count($key, $memory, $sampleRate);
    }
public function memory($key, $memory = null, $sampleRate = 1)
    {
        if (null === $memory) {
            $memory = memory_get_peak_usage();
        }
        $this->count($key, $memory, $sampleRate);
    }
public function memory ( $ key , $ memory = null , $ sampleRate = 1 ) { if ( null === $ memory ) { $ memory = memory_get_peak_usage ( ) ; } $ this -> count ( $ key , $ memory , $ sampleRate ) ; }
Report memory usage to StatsD. if memory was not given report peak usage

@param string $key
@param int $memory
@param int|float $sampleRate the rate (0-1) for sampling.
Report memory usage to StatsD . if memory was not given report peak usage