Example #1
0
 /**
  * Memory peak metric
  *
  * @param string $key Something like: 'foo.bar'
  */
 private function memory($key)
 {
     $this->client->memory($key);
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function memory($key, $memory = null, $sampleRate = 1)
 {
     $this->client->memory($key, $memory, $sampleRate);
 }
Example #3
0
 /**
  * @group memory
  */
 public function testMemory()
 {
     $this->client->memory('foo.bar');
     $this->assertRegExp('/test\\.foo\\.bar:[0-9]{4,}|c/', $this->connection->getLastMessage());
 }