pexeer edited a comment on issue #1244:
URL: https://github.com/apache/incubator-brpc/issues/1244#issuecomment-697171937


   1. 编译brpc时,带不带-DBRPC_ENABLE_CPU_PROFILER=ON这个都可以
   
   2. 编译工程时,必需要带上-DBRPC_ENABLE_CPU_PROFILER=ON并且链接libtcmalloc_and_profiler.so
   
   
因为brpc的profile功能是在.h文件中定义的,只有在你使用brpc的代码部分才会去看BRPC_ENABLE_CPU_PROFILER是否开启,具体代码请看`
 brpc/details/profiler_linker.h`


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

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