public function endMemoryProfile($key, $sampleRate = 1)
    {
        $end = memory_get_usage();
        if (array_key_exists($key, $this->memoryProfiles)) {
            $memory = ($end - $this->memoryProfiles[$key]);
            $this->memory($key, $memory, $sampleRate);
            unset($this->memoryProfiles[$key]);
        }
    }
public function endMemoryProfile($key, $sampleRate = 1)
    {
        $end = memory_get_usage();
        if (array_key_exists($key, $this->memoryProfiles)) {
            $memory = ($end - $this->memoryProfiles[$key]);
            $this->memory($key, $memory, $sampleRate);
            unset($this->memoryProfiles[$key]);
        }
    }
public function endMemoryProfile ( $ key , $ sampleRate = 1 ) { $ end = memory_get_usage ( ) ; if ( array_key_exists ( $ key , $ this -> memoryProfiles ) ) { $ memory = ( $ end - $ this -> memoryProfiles [ $ key ] ) ; $ this -> memory ( $ key , $ memory , $ sampleRate ) ; unset ( $ this -> memoryProfiles [ $ key ] ) ; } }
Ends the memory profiling and sends the value to the server

@param string $key
@param int|float $sampleRate the rate (0-1) for sampling.
Ends the memory profiling and sends the value to the server