Karssadin commented on issue #2244:
URL: https://github.com/apache/brpc/issues/2244#issuecomment-3095812230

   > 看起了Sampler::schedule() 也在main函数之前运行了。所以这个FLAGS_bvar_enable_sampling 
并控制不到sampling线程是否启动
   
   可以试下__attribute__((constructor())弄一个函数来set flag,因为在执行时static的变量要先于main


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to