Skip to content

Commit

Permalink
Update 2406_go_trace.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BugsGuru authored Jun 27, 2024
1 parent 44a66c8 commit e60b30b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/posts/MonthlyLearning/2406_go_trace.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func sum(wg *sync.WaitGroup) {
```sh
go tool trace trace.out
```
![trace-img.jpg](../img/trace-img.jpg)
![trace-img.jpg](https://github.com/BugsGuru/BugsGuru.github.io/blob/blog/content/posts/MonthlyLearning/img/trace-img.jpg)
可以看到sum的goroutine在不同的Proc上运行

## Q2:请描述 runtime/trace 包的使用场景
Expand All @@ -65,4 +65,4 @@ go tool trace trace.out
4. I/O 操作分析:跟踪网络通信、文件读写等 I/O 操作,找出潜在的延迟问题。

## 参考
- [https://go.dev/blog/execution-traces-2024](https://go.dev/blog/execution-traces-2024)
- [https://go.dev/blog/execution-traces-2024](https://go.dev/blog/execution-traces-2024)

0 comments on commit e60b30b

Please sign in to comment.