@@ -70,7 +70,7 @@ $ go tool trace trace.out
7070
7171访问 http://127.0.0.1:59181,可以看到类似的界面:
7272
73- ![ trace-home] ( https://raw.githubusercontent. com/shipengqi/illustrations/f700fde7450ccdb21c410611ff949769e301c364 /go/trace-home.png )
73+ ![ trace-home] ( https://gitee. com/shipengqi/illustrations/raw/main /go/trace-home.png )
7474
7575- ` View trace ` :查看所有 goroutines 的执行过程。
7676- ` Goroutine analysis ` :goroutines 分析,查看具体的 goroutine 的信息。
@@ -88,7 +88,7 @@ $ go tool trace trace.out
8888
8989进入 ` View trace ` 页面:
9090
91- ![ view-trace] ( https://raw.githubusercontent. com/shipengqi/illustrations/f700fde7450ccdb21c410611ff949769e301c364 /go/view-trace.png )
91+ ![ view-trace] ( https://gitee. com/shipengqi/illustrations/raw/main /go/view-trace.png )
9292
93931 . 时间线:显示执行的时间。
94942 . Goroutines/Heap/Threads 的详细信息。
@@ -103,32 +103,32 @@ $ go tool trace trace.out
103103
104104#### 查看某个时间点 goroutines 情况
105105
106- ![ view-trace-g-counter] ( https://raw.githubusercontent. com/shipengqi/illustrations/f700fde7450ccdb21c410611ff949769e301c364 /go/view-trace-g-counter.png )
106+ ![ view-trace-g-counter] ( https://gitee. com/shipengqi/illustrations/raw/main /go/view-trace-g-counter.png )
107107
108108图中正在运行的 goroutine 数量为 3,其他状态的 goroutine 数量都是 0。
109109
110110#### 查看某个时间点堆的使用情况
111111
112- ![ view-trace-heap] ( https://raw.githubusercontent. com/shipengqi/illustrations/aa2cb61b817e520379277b90937ac21909b4abd5 /go/view-trace-heap.png )
112+ ![ view-trace-heap] ( https://gitee. com/shipengqi/illustrations/raw/main /go/view-trace-heap.png )
113113
1141141 . 红色部分表示已经占用的内存
1151152 . 绿色部分的上边沿表示下次 GC 的目标内存,也就是绿色部分用完之后,就会触发 GC。
116116
117117#### 查看某个时间点的系统线程
118118
119- ![ view-trace-threads] ( https://raw.githubusercontent. com/shipengqi/illustrations/aa2cb61b817e520379277b90937ac21909b4abd5 /go/view-trace-threads.png )
119+ ![ view-trace-threads] ( https://gitee. com/shipengqi/illustrations/raw/main /go/view-trace-threads.png )
120120
121121图中正在运行的线程数量为 3,正在调用 SysCall 的线程数量为 0。
122122
123123#### 查看 GC
124124
125- ![ view-trace-gc] ( https://raw.githubusercontent. com/shipengqi/illustrations/aa2cb61b817e520379277b90937ac21909b4abd5 /go/view-trace-gc.png )
125+ ![ view-trace-gc] ( https://gitee. com/shipengqi/illustrations/raw/main /go/view-trace-gc.png )
126126
127127可以选择多个查看统计信息。
128128
129129#### 查看某个时间点的 goroutine 运行情况
130130
131- ![ view-trace-folw-events] ( https://raw.githubusercontent. com/shipengqi/illustrations/aa2cb61b817e520379277b90937ac21909b4abd5 /go/view-trace-folw-events.png )
131+ ![ view-trace-folw-events] ( https://gitee. com/shipengqi/illustrations/raw/main /go/view-trace-folw-events.png )
132132
133133点击具体的 Goroutine 可以查看详细信息:
134134
@@ -149,11 +149,11 @@ $ go tool trace trace.out
149149
150150进入 ` Goroutine analysis ` 可查看整个运行过程中,每个函数块有多少个 goroutine 在跑,并且观察每个的 goroutine 的运行开销都花费在哪个阶段。
151151
152- ![ goroutines-analysis] ( https://raw.githubusercontent. com/shipengqi/illustrations/aa2cb61b817e520379277b90937ac21909b4abd5/go /goroutines-analysis.png )
152+ ![ goroutines-analysis] ( https://gitee. com/shipengqi/illustrations/raw/main /goroutines-analysis.png )
153153
154154点击一个 goroutine 查看详细信息,例如 ` main.main.func1 ` :
155155
156- ![ goroutines-analysis-n] ( https://raw.githubusercontent. com/shipengqi/illustrations/aa2cb61b817e520379277b90937ac21909b4abd5/go /goroutines-analysis-n.png )
156+ ![ goroutines-analysis-n] ( https://gitee. com/shipengqi/illustrations/raw/main /goroutines-analysis-n.png )
157157
158158| 名称 | 含义 | 耗时 |
159159| -----------------------| --------| -------|
0 commit comments