mirror of https://github.com/etcd-io/dbtester.git
more logging for report
This commit is contained in:
parent
7b8c204c7e
commit
3980317c9d
|
|
@ -16,6 +16,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"math"
|
"math"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
@ -83,8 +84,14 @@ func wrapReport(f func()) <-chan struct{} {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *report) finalize() {
|
func (r *report) finalize() {
|
||||||
|
log.Println("finalize has started")
|
||||||
st := time.Now()
|
st := time.Now()
|
||||||
|
i := 0
|
||||||
for res := range r.results {
|
for res := range r.results {
|
||||||
|
if i%100 == 0 {
|
||||||
|
log.Printf("processing finalize at %d", i)
|
||||||
|
}
|
||||||
|
i++
|
||||||
if res.errStr != "" {
|
if res.errStr != "" {
|
||||||
r.errorDist[res.errStr]++
|
r.errorDist[res.errStr]++
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue