[英]What is runtime.kevent in a golang program's profile?
我正在分析一個程序,其中大部分時間(86%)花費在兩個運行時函數上:kevent和selectgo。 我了解選擇,但是我不知道什么是kevent(所以我不知道從哪里開始優化):
Showing top 10 nodes out of 33
flat flat% sum% cum cum%
114.63s 65.79% 65.79% 114.63s 65.79% runtime.kevent /usr/local/Cellar/go/1.9.2/libexec/src/runtime/sys_darwin_amd64.s
19.26s 11.05% 76.85% 35.90s 20.60% runtime.selectgo /usr/local/Cellar/go/1.9.2/libexec/src/runtime/select.go
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.