promoon opened a new issue, #2658:
URL: https://github.com/apache/brpc/issues/2658

   **Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
   pprof/heap 无法动态开启或关闭tcmalloc采样。
   ```
   bool has_TCMALLOC_SAMPLE_PARAMETER() {
   
       static bool val = check_TCMALLOC_SAMPLE_PARAMETER();
   
       return val;
   
   }
   ```
   
   **Describe the solution you'd like (描述你期望的解决方法)**
   能够支持通过设置"TCMALLOC_SAMPLE_PARAMETER" 环境变量动态开启/关闭tcmalloc采样
   
   **Describe alternatives you've considered (描述你想到的折衷方案)**
   这个val值为什么要设为static,是否可以去掉从而支持动态设置"TCMALLOC_SAMPLE_PARAMETER" 环境变量
   
   **Additional context/screenshots (更多上下文/截图)**
   
   


-- 
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