摘要:
https://colobu.com/2016/12/21/how to dump goroutine stack traces/ 阅读全文
posted @ 2020-02-07 16:37
大海星
阅读(660)
评论(0)
推荐(0)
摘要:
如何阻塞一个goroutine 下面的方法都可以永远阻塞当前的goroutine 方法1:从一个不发送数据channel中接收数据 方法2:向不接收数据的channel中发送数据 方法3:从空的channel中接收数据 方法4:向空channel中发送数据 方法5:使用select 阅读全文
posted @ 2020-02-07 16:24
大海星
阅读(1571)
评论(0)
推荐(0)
摘要:
https://colobu.com/2017/02/07/write idiomatic golang codes/ 阅读全文
posted @ 2020-02-07 16:14
大海星
阅读(198)
评论(0)
推荐(0)
摘要:
1. 介绍 对于生产环境中运行的进程,可以用 Go 内置的性能分析工具 pprof 窥测进程的当前状况。 "Profiling Go Programs" 很好地演示了用 pprof 找到性能瓶颈的过程,这里只演示简单用法。 2. 启用实时的pprof 2.1 启用实时的 pprof 非常简单,只需要 阅读全文
posted @ 2020-02-07 11:50
大海星
阅读(2984)
评论(0)
推荐(0)

浙公网安备 33010602011771号