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/16 07:08:41 UTC

[GitHub] [incubator-brpc] GOGOYAO opened a new issue #1244: cpu pfofiler 开启失败

GOGOYAO opened a new issue #1244:
URL: https://github.com/apache/incubator-brpc/issues/1244


   **Describe the bug (描述bug)**
   按照文档编译了brpc,然后在工程中,连接了/usr/lib64/libtcmalloc_and_profiler.so(通过yum安装的gperfs)
   最终还是出现
   ![image](https://user-images.githubusercontent.com/18675094/93303479-156efa00-f82e-11ea-9c01-e8b92f74217f.png)
   
   
   **To Reproduce (复现方法)**
   编译brpc时,cmake .. -DBRPC_ENABLE_CPU_PROFILER=ON
   编译工程时,除了连接brpc,还链接了/usr/lib64/libtcmalloc_and_profiler.so(通过yum安装的gperfs)
   
   **Expected behavior (期望行为)**
   正常开启cpu profiler
   
   **Versions (各种版本)**
   OS: centos 7
   Compiler: gcc 8
   brpc: 11da9c8cbdc2ec8c0da728aedb4ed906717d6e0f
   protobuf: 3.11
   
   **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.

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


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

Posted by GitBox <gi...@apache.org>.
pexeer commented 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_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


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

Posted by GitBox <gi...@apache.org>.
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


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

Posted by GitBox <gi...@apache.org>.
GOGOYAO edited a comment on issue #1244:
URL: https://github.com/apache/incubator-brpc/issues/1244#issuecomment-817437125


   > 因为brpc的profile功能是在.h文件中定义的,只有在你使用brpc的代码部分才会去看BRPC_ENABLE_CPU_PROFILER是否开启,具体代码请看` brpc/details/profiler_linker.h`
   
   是你这样弄的。
   
   我的问题是,”发现cpu profile结果的下拉列表里面,可以正常打开看到cpu profile结果“,但是如果是选择new profile提示的是未开启。很奇怪。
   
   ![image](https://user-images.githubusercontent.com/18675094/114336809-563faf00-9b82-11eb-93e4-a51c31e3ece4.png)
   
   红框里面的都是可以看到profile结果的


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


[GitHub] [incubator-brpc] GOGOYAO commented on issue #1244: cpu profiler 开启的一个问题

Posted by GitBox <gi...@apache.org>.
GOGOYAO commented on issue #1244:
URL: https://github.com/apache/incubator-brpc/issues/1244#issuecomment-817437125


   > 因为brpc的profile功能是在.h文件中定义的,只有在你使用brpc的代码部分才会去看BRPC_ENABLE_CPU_PROFILER是否开启,具体代码请看` brpc/details/profiler_linker.h`
   
   是你这样弄的。我的问题是,”发现cpu profile结果的下拉列表里面,可以正常打开看到cpu profile结果“,但是如果是选择<new profile>提示的是未开启。很奇怪


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


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

Posted by GitBox <gi...@apache.org>.
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:
users@infra.apache.org



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