[CP] SQL execution time consumption statistics
This commit is contained in:
@ -1190,6 +1190,11 @@ int ObMPStmtExecute::do_process(ObSQLSessionInfo &session,
|
||||
exec_end_timestamp_ = ObTimeUtility::current_time();
|
||||
record_stat(result.get_stmt_type(), exec_end_timestamp_);
|
||||
}
|
||||
if (enable_perf_event && !THIS_THWORKER.need_retry()
|
||||
&& OB_NOT_NULL(result.get_physical_plan())) {
|
||||
const int64_t time_cost = exec_end_timestamp_ - get_receive_timestamp();
|
||||
ObSQLUtils::record_execute_time(result.get_physical_plan()->get_plan_type(), time_cost);
|
||||
}
|
||||
if (enable_sql_audit) {
|
||||
audit_record.exec_record_.record_end(di);
|
||||
bool first_record = (1 == audit_record.try_cnt_);
|
||||
|
||||
Reference in New Issue
Block a user