We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 0535a3d1 authored by Brion Vibber's avatar Brion Vibber

Event hook for SQLProfile

parent 66b89de2
......@@ -338,7 +338,11 @@ class Memcached_DataObject extends Safe_DataObject
}
$start = microtime(true);
$result = parent::_query($string);
$result = null;
if (Event::handle('StartDBQuery', array($this, $string, &$result))) {
$result = parent::_query($string);
Event::handle('EndDBQuery', array($this, $string, &$result));
}
$delta = microtime(true) - $start;
$limit = common_config('db', 'log_slow_queries');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment