From 4c408292f207ab0e24a482cd42e1b1a4535d1632 Mon Sep 17 00:00:00 2001 From: Anton Terekhov Date: Fri, 29 Jul 2011 13:36:02 +0400 Subject: [PATCH] Method info on profiler --- model/MySQLiStatement.php | 2 +- redis/RedisDebug.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/model/MySQLiStatement.php b/model/MySQLiStatement.php index 7a7865e..6e0ec6b 100644 --- a/model/MySQLiStatement.php +++ b/model/MySQLiStatement.php @@ -84,7 +84,7 @@ class MySQLiStatement extends DbStatement */ $mysqli = $this->driver->getConnection(); if (DEBUG) { - $profiler = Profiler::getInstance()->profilerCommand('mysql', $sql); + $profiler = Profiler::getInstance()->profilerCommand('MySQL', $sql); $result = $mysqli->query($sql); $profiler->end(); } else { diff --git a/redis/RedisDebug.php b/redis/RedisDebug.php index 6ef30bb..050b1d1 100644 --- a/redis/RedisDebug.php +++ b/redis/RedisDebug.php @@ -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;