← [ BACK_TO_NOTES ]

Go 性能与诊断 MOC

Go 性能与诊断主题地图:benchmark、pprof、race、逃逸分析与性能方法论入口。

#moc #growing #dev #go

[!info] related notes

Go 性能与诊断 MOC

知识总览

filters:
  and:
    - 'file.ext == "md"'
    - 'file.inFolder("z")'
    - 'this.file.links.contains(file)'
    - 'file.path != this.file.path'
formulas:
  knowledge: 'file.asLink(title)'
properties:
  formula.knowledge:
    displayName: 知识
  note.description:
    displayName: Description
  note.mastery:
    displayName: Mastery
views:
  - type: table
    name: 知识总览
    order:
      - formula.knowledge
      - note.description
      - note.mastery
    columnSize:
      formula.knowledge: 280
      note.description: 760
      note.mastery: 56

这个概念为什么出现

优化若没有地图,会变成随机改代码。本 MOC 把测量工具与方法论收成一条导航:先基准与 profile,再谈逃逸、GC 与调度。

这张地图覆盖什么

对应学习路线阶段五/六交叉:benchmark、pprof、race detector、逃逸分析与性能方法论。

从这里开始

  1. Go benchmark
  2. Go pprof
  3. Go race detector
  4. 性能方法论
  5. 逃逸分析

基准与测量

诊断与剖析

相邻主题

自测题

  1. 性能工作的第一步应是改代码还是定义指标并测量?
  2. race 与 pprof 分别解决什么问题?
答案
  1. 先指标与可复现测量。
  2. race 查数据竞争;pprof 找 CPU/内存/阻塞热点。
创建于 2026/6/20 更新于 2026/7/15
Digital Biome
Access

键盘导航

j / k / ↑ / ↓
选择对象
Enter / o
打开选择
/ 或 Ctrl+K
全站搜索
i / f / 1–4
筛选当前列表
g → h / l / p / t / a
首页 / 笔记 / 项目 / 工具 / About
r → 1–9
打开所选对象的关联
u
返回上一页
Esc
关闭浮层 / 取消命令;输入框内清空文本