brpc profiler

cpu profiler

cpu profiler | bRPC

MacOS的额外配置

在MacOS下,gperftools中的perl pprof脚本无法将函数地址转变成函数名,解决办法是:

  1. 安装standalone pprof,并把下载的pprof二进制文件路径写入环境变量GOOGLE_PPROF_BINARY_PATH中
  2. 安装llvm-symbolizer(将函数符号转化为函数名),直接用brew安装即可:brew install llvm

/opt/homebrew/opt

/opt/homebrew/Cellar/

brew info protobuf

rpcz:

connections:http://127.0.0.1:8000/rpcz?trace=a32a9de8a8ec0004

复制代码
Processing the request in a new bthread开始序列化payload部分
复制代码
Enter example.EchoService.Echo,开始处理rpc method方法
复制代码
Leave example.EchoService.Echo,开始序列化response
复制代码
Responded(38) 开始response

builtin/rpcz_service.cpp中打印的rpcz log

span.cpp中记录了每个打点信息

相关推荐
sg_knight7 分钟前
Claude Code 安装指南(macOS / Linux / Windows WSL)
linux·windows·macos·claude·code·anthropic·claude-code
殳翰8 小时前
下服务器端开发流程及相关工具介绍(C++)
开发语言·c++
青瓦梦滋9 小时前
协议定制/序列化-反序列化(Linux视角)
linux·服务器·网络·c++
2601_961593429 小时前
Rust 开发环境配置繁琐?RustRover 开箱即用搞定编码调试
开发语言·后端·macos·rust
在水一缸11 小时前
拒绝被打扰:深度解析 macOS 进程守护与“反自动启动”攻防战
macos·策略模式·用户体验·进程守护·自动启动·系统权限
山登绝顶我为峰 3(^v^)312 小时前
C/C++ 交叉编译方法
java·c语言·c++
REDcker15 小时前
macOS 挂载 Linux 远程目录详解
linux·运维·macos
2601_9615934215 小时前
Mac 上搭建Linux环境吗?VMware + CentOS Stream 9 镜像快速部署
linux·运维·ide·macos·centos
郝学胜-神的一滴16 小时前
中级OpenGL教程 013:渲染器类架构设计与逐帧渲染流程详解
开发语言·c++·unity·游戏引擎·图形渲染·opengl·unreal