You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2020/09/23 06:59:40 UTC

[GitHub] [incubator-brpc] pexeer edited a comment on issue #1244: cpu profiler 开启的一个问题

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文件中定义的,只有在你启动server的代码部分才会去看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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org