apache / brpc

brpc is an Industrial-grade RPC framework using C++ Language, which is often used in high performance system such as Search, Storage, Machine learning, Advertisement, Recommendation etc. "brpc" means "better RPC".
https://brpc.apache.org
Apache License 2.0
16.56k stars 3.98k forks source link

cpu profiler异常符号 #2795

Open icexin opened 1 month ago

icexin commented 1 month ago

image 如图,很多热点最终指向了这个函数,是什么意思?

chenBright commented 3 weeks ago

地址转符号名字的时候出异常了,跟你用的工具有关系吧。用内置服务看也有问题吗?

icexin commented 3 weeks ago

找不到现场了,内置的看也会有一些莫名的符号,或者一个孤立的函数调用,缺乏完整的调用链。

chenBright commented 3 weeks ago

应该跟gperftools的unwind方式有关,可以尝试换其他的unwind方式。

zhaojinzhou commented 3 weeks ago

遇到了相同的问题。 Ubuntu 20 会有问题, centos 7就很正常。

zhaojinzhou commented 3 weeks ago

32ce5086aae79bfe96739aff396031178d99b6da

zhaojinzhou commented 3 weeks ago

unwind

怎么换呢? 譬如说,举个例子?

chenBright commented 3 weeks ago

可以看看gperftools的文档