Skip to content

Commit

Permalink
rm img
Browse files Browse the repository at this point in the history
  • Loading branch information
BugsGuru committed Jun 27, 2024
1 parent 5cf7e35 commit c7c2e08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions content/posts/MonthlyLearning/2406_go_trace.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,10 @@ func sum(wg *sync.WaitGroup) {
}
}
```
分析trace.out:
```sh
go tool trace trace.out
```
![trace.jpg](../img/trace.jpg)
可以看到sum的goroutine在不同的Proc上运行

## Q2:请描述 runtime/trace 包的使用场景
1. 性能瓶颈分析:通过跟踪程序的执行路径,识别并优化性能瓶颈,例如长时间运行的函数或高频率调用的函数。
Expand Down

0 comments on commit c7c2e08

Please sign in to comment.