Open aseco.php and search for line 1196:
Code: Select all
foreach ($this->rpc_calls as $call) {
// display error message if needed
$err = false;
if (isset($responses[$call->index]['faultString'])) {
$this->rpcErrorResponse($responses[$call->index]);
print_r($call->call);
$err = true;
}
// if an id was set, then save the response under the specified id
if ($call->id) {
$this->rpc_responses[$call->id] = $responses[$call->index][0];
}
// if a callback function has been set, then execute it
if ($call->callback && !$err) {
if (function_exists($call->callback)) {
// callback the function with the response as parameter
call_user_func($call->callback, $responses[$call->index][0]);
}
// if a function with the name of the callback wasn't found, then
// try to execute a method with its name
elseif (method_exists($this, $call->callback)) {
// callback the method with the response as parameter
call_user_func(array($this, $call->callback), $responses[$call->index][0]);
}
}
}
Code: Select all
foreach ($this->rpc_calls as $call) {
// display error message if needed
$err = false;
if (isset($responses[$call->index]['faultString'])) {
$this->rpcErrorResponse($responses[$call->index]);
print_r($call->call);
$err = true;
}
// if an id was set, then save the response under the specified id
if ($call->id) {
$this->rpc_responses[$call->id] = $responses[$call->index][0];
}
// if a callback function has been set, then execute it
if ($call->callback && !$err) {
$starttime = microtime();
if (function_exists($call->callback)) {
// callback the function with the response as parameter
call_user_func($call->callback, $responses[$call->index][0]);
}
// if a function with the name of the callback wasn't found, then
// try to execute a method with its name
elseif (method_exists($this, $call->callback)) {
// callback the method with the response as parameter
call_user_func(array($this, $call->callback), $responses[$call->index][0]);
}
$time = $starttime - microtime();
if ($time > !!!SET NUMBER HERE!!!) {
$event_time_debug[] = array($call->callback, $time);
}
}
}
$previous = file_get_contents('event_time_debug.txt');
file_put_contents('event_time_debug.txt', $previous . PHP_EOL.PHP_EOL . print_r($event_time_debug, true));
Dunno wether it works, just try it. If it works, it wont be very pretty and easy to use but for few minutes work i think its ok
