Reworked profiler

This commit is contained in:
Anton Terekhov
2011-07-29 13:05:23 +04:00
parent 77a62925d8
commit 165bf08c09
12 changed files with 2351 additions and 65 deletions

View File

@ -24,7 +24,7 @@ class RedisDebug
public function __call($name, $arguments)
{
$command = $name . '(' . $this->r_implode(', ', $arguments) . ')';
$profiler = Profiler::getInstance()->profilerQuery($command);
$profiler = Profiler::getInstance()->profilerCommand('redis', $command);
$data = call_user_func_array(array($this->redis, $name), $arguments);
$profiler->end();
return $data;