上一页 1 2 3 4 5 6 7 8 9 10 ··· 26 下一页
摘要: 1. 常用命令 sudo strace -f -p PID 2. 参考 参考 阅读全文
posted @ 2020-03-15 14:47 大海星 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1. 事例 "结合这个来理解chan chan" 2. 参考 https://studygolang.com/articles/22681 http://tleyden.github.io/blog/2013/11/23/understanding chan chans in go/ https:/ 阅读全文
posted @ 2020-03-15 13:26 大海星 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 1. https://developer.aliyun.com/article/721151 2. https://www.kubernetes.org.cn/6838.html 阅读全文
posted @ 2020-03-08 17:13 大海星 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1. telepresence 2. Okteto https://okteto.com/blog/how to develop go apps in kubernetes/ 阅读全文
posted @ 2020-02-21 08:33 大海星 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1. 问题 2. 参考 https://stephen.sh/posts/quick-go-performance-improvements https://mp.weixin.qq.com/s/wXzGZlvF6fCXjcGFzG74Xw https://mp.weixin.qq.com/s/-H 阅读全文
posted @ 2020-02-10 09:50 大海星 阅读(193) 评论(0) 推荐(0) 编辑
摘要: https://colobu.com/2016/12/21/how to dump goroutine stack traces/ 阅读全文
posted @ 2020-02-07 16:37 大海星 阅读(654) 评论(0) 推荐(0) 编辑
摘要: 如何阻塞一个goroutine 下面的方法都可以永远阻塞当前的goroutine 方法1:从一个不发送数据channel中接收数据 方法2:向不接收数据的channel中发送数据 方法3:从空的channel中接收数据 方法4:向空channel中发送数据 方法5:使用select 阅读全文
posted @ 2020-02-07 16:24 大海星 阅读(1562) 评论(0) 推荐(0) 编辑
摘要: https://colobu.com/2017/02/07/write idiomatic golang codes/ 阅读全文
posted @ 2020-02-07 16:14 大海星 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1. 介绍 对于生产环境中运行的进程,可以用 Go 内置的性能分析工具 pprof 窥测进程的当前状况。 "Profiling Go Programs" 很好地演示了用 pprof 找到性能瓶颈的过程,这里只演示简单用法。 2. 启用实时的pprof 2.1 启用实时的 pprof 非常简单,只需要 阅读全文
posted @ 2020-02-07 11:50 大海星 阅读(2843) 评论(0) 推荐(0) 编辑
摘要: 参考: https://colobu.com/2017/06/19/advanced command execution in Go with os exec/ 阅读全文
posted @ 2020-02-05 20:32 大海星 阅读(208) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 26 下一页