function ws_performance_record_performance in Web Service Data 7
1 call to ws_performance_record_performance()
- WsConfig::call in modules/
wsconfig/ wsconfig.entity.inc - Method for calling a webservice method.
File
- modules/
ws_performance/ ws_performance.module, line 69
Code
function ws_performance_record_performance($wsconfig, $type, $method, $wait, $data, &$result) {
$record = array(
'wsconfig_name' => $wsconfig->name,
'wsconfig_type' => $type,
'wsconfig_method' => NULL,
'run' => time(),
'wait' => $wait,
'size' => strlen($result),
'data' => NULL,
'result' => NULL,
);
if (variable_get('ws_performance_store_method', FALSE)) {
$record['wsconfig_method'] = $method;
}
if (variable_get('ws_performance_store_data', FALSE)) {
$record['data'] = serialize($data);
}
if (variable_get('ws_performance_store_result', FALSE)) {
$record['result'] = $result;
}
drupal_write_record('ws_performance', $record);
}