Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
debug-tools: address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
csuzhangxc committed Nov 15, 2019
1 parent 43d8ce3 commit 50c2b56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions debug-tools/binlog-event-blackhole/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
When exiting, the result will be output to the log as following

```log
[2019/08/12 15:44:19.269 +08:00] [INFO] [main.go:95] ["binlog-event-blackhole exit"] [event-count=35] [byte-count=2360] [duration=705.627314ms] [tps=49.601254522865595] ["speed (byte/s)"=3344.541733541794]
[2019/08/12 15:44:19.269 +08:00] [INFO] [main.go:95] ["binlog-event-blackhole exit"] [event-count=35] [byte-count=2360] [duration=705.627314ms] [tps=49.601254522865595] ["throughput (byte/s)"=3344.541733541794]
```

| Item | Description |
Expand All @@ -43,4 +43,4 @@ When exiting, the result will be output to the log as following
| byte-count | The total bytes have received from the upstream master |
| duration | The duration has be taken to fetch binlog events |
| tps | The events have received per second |
| speed | The speed of fetching binlog event data (bytes/second) |
| throughput | The throughput of fetching binlog event data (bytes/second) |
2 changes: 1 addition & 1 deletion debug-tools/binlog-event-blackhole/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,5 @@ func main() {
speed := float64(byteCount) / duration.Seconds()
log.L().Info("binlog-event-blackhole exit",
zap.Uint64("event-count", eventCount), zap.Uint64("byte-count", byteCount),
zap.Duration("duration", duration), zap.Float64("tps", tps), zap.Float64("speed (byte/s)", speed))
zap.Duration("duration", duration), zap.Float64("tps", tps), zap.Float64("throughput (byte/s)", speed))
}

0 comments on commit 50c2b56

Please sign in to comment.