pprof-rs icon indicating copy to clipboard operation
pprof-rs copied to clipboard

[WIP] Support musl

Open YangKeao opened this issue 5 years ago • 6 comments

Signed-off-by: Yang Keao [email protected]

Related with #27 . But there are still problems to build on musl:

  1. symbolic-demangle has to be modified to avoid dynamic linking with stdc++. cpp_link_stdlib(None) can simply solve this.

  2. The backtrace works not well:

image

Here is an example running the multithread_flamegraph :cry: .

YangKeao avatar Jul 09 '20 13:07 YangKeao

Any new progress? I can help, I am on a native musl host.

xhebox avatar Nov 01 '20 13:11 xhebox

@xhebox Really thanks for your help! It would be appreciated to submit a PR and make it work with musl. If you need any help on pprof-rs, feel free to contact me (under #41, or through email).

There is no new progress for this PR :sob: . I have tried to modify symbolic-demangle and make it compiled under musl. However, as shown before, it works not well. Once your commits arrive, I would close this one.

YangKeao avatar Nov 02 '20 03:11 YangKeao

Oh, the flame graph? Maybe there is a workaround.. But maybe not, I will look into this and ask the author of musl-libc for some help.

The problem is that it is blocking my compilation of tikv. I do not really need a well working pprof on musl. Backtracing never works well on musl... Maybe could, somehow, first pass the build of tikv.

xhebox avatar Nov 02 '20 03:11 xhebox

@xhebox Well. It would be better to use conditional compilation and target specified dependency to avoid building pprof-rs on musl.

YangKeao avatar Nov 02 '20 04:11 YangKeao

@YangKeao

Hello, are there any plans to restart this pr?

BohuTANG avatar Jul 21 '21 12:07 BohuTANG

I ended up here after getting empty profiles from our services built with musl. I wasn't sure what the status was, are we still waiting for something to be released in #41, or do we know what is not working with musl?

fredr avatar Dec 19 '22 16:12 fredr