Method info on profiler

This commit is contained in:
Anton Terekhov
2011-07-29 13:36:02 +04:00
parent 165bf08c09
commit 4c408292f2
2 changed files with 3 additions and 3 deletions

View File

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