Skip to content

Commit

Permalink
executor: print the number of cop-tasks in results of `explain anal…
Browse files Browse the repository at this point in the history
…yze` (#13686)
  • Loading branch information
qw4990 authored and sre-bot committed Nov 23, 2019
1 parent 153a6fa commit bc21efe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/execdetails/execdetails.go
Expand Up @@ -295,7 +295,7 @@ func (rrs *ReaderRuntimeStats) String() string {
return ""
}
if size == 1 {
return fmt.Sprintf("rpc time:%v", rrs.copRespTime[0])
return fmt.Sprintf("rpc num:1, time:%v", rrs.copRespTime[0])
}
sort.Slice(rrs.copRespTime, func(i, j int) bool {
return rrs.copRespTime[i] < rrs.copRespTime[j]
Expand All @@ -307,7 +307,7 @@ func (rrs *ReaderRuntimeStats) String() string {
sum += float64(t)
}
vAvg := time.Duration(sum / float64(size))
return fmt.Sprintf("rpc max:%v, min:%v, avg:%v, p80:%v, p95:%v", vMax, vMin, vAvg, vP80, vP95)
return fmt.Sprintf("rpc num:%v, max:%v, min:%v, avg:%v, p80:%v, p95:%v", size, vMax, vMin, vAvg, vP80, vP95)
}

// RuntimeStatsColl collects executors's execution info.
Expand Down

0 comments on commit bc21efe

Please sign in to comment.