diff options
| author | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2025-12-06 21:26:58 +0200 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-12-08 07:58:01 -0800 |
| commit | 973a4f71326930ee01898a6795087cd3a3fb789f (patch) | |
| tree | 097118c60b32d0f0683890b1d44108c5cdff346d | |
| parent | a5b778062e0b102d79aebb56be1aa72bc67b8d77 (diff) | |
| download | go-x-website-973a4f71326930ee01898a6795087cd3a3fb789f.tar.xz | |
_content/blog/flight-recorder: fix typo and code example
Change-Id: I438d5c02b11e6d4bc70d1612d57d4bbd57e355d1
Reviewed-on: https://go-review.googlesource.com/c/website/+/727720
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Sean Liao <sean@liao.dev>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
| -rw-r--r-- | _content/blog/flight-recorder.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/_content/blog/flight-recorder.md b/_content/blog/flight-recorder.md index 6c63ade3..a05d8a18 100644 --- a/_content/blog/flight-recorder.md +++ b/_content/blog/flight-recorder.md @@ -269,7 +269,7 @@ visualization of all flow events often provides clues that hint at the source of In this case, we can see that many of the goroutines have a direct connection to a single goroutine right after the pause in activity. -Clicking on the the single goroutine shows an event table filled with outgoing flow events, which +Clicking on the single goroutine shows an event table filled with outgoing flow events, which matches what we saw when the flow view was enabled. What happened when this goroutine ran? Part of the information stored in the trace is a view @@ -290,11 +290,12 @@ Between the start and the end of this goroutine running, we see a huge number of This flow implicates the `Unlock` in `sendReport`: ```go -for index, b := range buckets { +for index := range buckets { + b := &buckets[index] b.mu.Lock() defer b.mu.Unlock() - counts[index] = b.value + counts[index] = b.guesses } ``` |
