Is there a go 1.5 trace tool tutorial?

blov · · 985 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I&#39;ve added pprof to my application and am executing</p> <pre><code>go tool trace my_binary trace </code></pre> <p>I think I understand what I&#39;m seeing at <a href="http://127.0.0.1:64171/io">http://127.0.0.1:64171/io</a> and <a href="http://127.0.0.1:64171/syscall">http://127.0.0.1:64171/syscall</a> and <a href="http://127.0.0.1:64171/sched">http://127.0.0.1:64171/sched</a> and <a href="http://127.0.0.1:64171/block">http://127.0.0.1:64171/block</a>, but I get overwhelmed at <a href="http://127.0.0.1:64171/trace">http://127.0.0.1:64171/trace</a>. From what I can tell it&#39;s a trace of the goroutines, I can&#39;t totally figure out how to navigate the traces or use them for productive debugging. Is there a blog post or tutorial about someone using this /trace for useful gain? The best I&#39;ve found is <a href="https://www.chromium.org/developers/how-tos/trace-event-profiling-tool">https://www.chromium.org/developers/how-tos/trace-event-profiling-tool</a> but it would be great to see what someone does when they use /trace in go to resolve a real (or real imagined) issue.</p> <p>The changlog links to <a href="https://talks.golang.org/2015/dynamic-tools.slide#30">https://talks.golang.org/2015/dynamic-tools.slide#30</a>, but I think I&#39;m missing something.</p> <p>Just a short list of tips would be useful.</p>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

985 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传