Skip to content

开启cpu profiler后导出的pdf文件异常简洁 #1543

@zhangwenqin01

Description

@zhangwenqin01

Describe the bug (描述bug)![image]
以echo_c++ server为例,使用方法:
tools/pprof host:ip/pprof/profile --pdf > output.pdf
获取到的pdf如图所示
ech0.pdf

To Reproduce (复现方法)

Expected behavior (期望行为)

Versions (各种版本)
OS:
debian 9.13

Compiler:
bazel 3.0.0

brpc:
0.9.7

protobuf:
Additional context/screenshots (更多上下文/截图)

ps:为了排除是依赖的libtcmalloc_and_profiler.a和libunwind.a的问题,在demo程序上直接链接这两个静态库

按照如下使用方法
pprof ./demo(demo的二进制文件) 127.0.0.1:ip/pprof/profile --pdf > output.pdf

获取到的pdf文件是正常的,如下图

output.pdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    usageuser need to change the way using brpc to solve the problem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions