]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Memcached_DataObject.php
Performance counters: records number of total and unique cache get/set/incr/deletes...
[quix0rs-gnu-social.git] / classes / Memcached_DataObject.php
index a3c2de8e6415857126c759a548de801a77673283..867b40cf3cc0e05363343e9696a3ba56c53437a8 100644 (file)
@@ -340,6 +340,7 @@ class Memcached_DataObject extends Safe_DataObject
         $start = microtime(true);
         $result = null;
         if (Event::handle('StartDBQuery', array($this, $string, &$result))) {
+            common_perf_counter('query', $string);
             $result = parent::_query($string);
             Event::handle('EndDBQuery', array($this, $string, &$result));
         }