Skip to content

Commit

Permalink
*: remove observePhaseDurations to save cpu time
Browse files Browse the repository at this point in the history
  • Loading branch information
lcwangchao committed Aug 10, 2022
1 parent 319b50b commit ebf2dbf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion executor/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,6 @@ func (a *ExecStmt) FinishExecuteStmt(txnTS uint64, err error, hasMoreResults boo
}
sessVars.PrevStmt = FormatSQL(a.GetTextToLog())

a.observePhaseDurations(sessVars.InRestrictedSQL, execDetail.CommitDetail)
executeDuration := time.Since(sessVars.StartTime) - sessVars.DurationCompile
if sessVars.InRestrictedSQL {
sessionExecuteRunDurationInternal.Observe(executeDuration.Seconds())
Expand Down

0 comments on commit ebf2dbf

Please sign in to comment.