original_string: 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]);
          }
      }
code: 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]);
          }
      }
code_tokens: 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 ] ) ; } }
docstring: Ends the memory profiling and sends the value to the server
  
  @param string $key
  @param int|float $sampleRate the rate (0-1) for sampling.
docstring_tokens: Ends the memory profiling and sends the value to the server