icexin commented on issue #2833: URL: https://github.com/apache/brpc/issues/2833#issuecomment-2547677640
我在内部分支写了一个版本,是通过动态flag控制的。主要是考虑到clock_gettime在获取thread cpu time的开销大概是200ns,常态开启会有一些影响,使用上可以接受类似pprof的开启一段时间,拿到数据后就不需要开启了。 具体实现是在调度器里面切换bthread的时候进行累加 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org