File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 1+ * Add method to QueryStats interface for add new stat fields
12* Added check if commit order is bad in sync mode
23
34## v3.49.1
Original file line number Diff line number Diff line change @@ -38,6 +38,14 @@ func (s *queryStats) QueryAST() string {
3838 return s .stats .GetQueryAst ()
3939}
4040
41+ func (s * queryStats ) TotalCPUTime () time.Duration {
42+ return time .Microsecond * time .Duration (s .stats .TotalCpuTimeUs )
43+ }
44+
45+ func (s * queryStats ) TotalDuration () time.Duration {
46+ return time .Microsecond * time .Duration (s .stats .TotalDurationUs )
47+ }
48+
4149// NextPhase returns next execution phase within query.
4250// If ok flag is false, then there are no more phases and p is invalid.
4351func (s * queryStats ) NextPhase () (p stats.QueryPhase , ok bool ) {
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ type QueryStats interface {
1919 Compilation () (c * CompilationStats )
2020 QueryPlan () string
2121 QueryAST () string
22+ TotalCPUTime () time.Duration
23+ TotalDuration () time.Duration
24+
2225 // NextPhase returns next execution phase within query.
2326 // If ok flag is false, then there are no more phases and p is invalid.
2427 NextPhase () (p QueryPhase , ok bool )
You can’t perform that action at this time.
0 commit comments