pprof-rs
pprof-rs copied to clipboard
[WIP] Support musl
Signed-off-by: Yang Keao [email protected]
Related with #27 . But there are still problems to build on musl:
-
symbolic-demanglehas to be modified to avoid dynamic linking with stdc++.cpp_link_stdlib(None)can simply solve this. -
The backtrace works not well:

Here is an example running the multithread_flamegraph :cry: .
Any new progress? I can help, I am on a native musl host.
@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.
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 Well. It would be better to use conditional compilation and target specified dependency to avoid building pprof-rs on musl.
@YangKeao
Hello, are there any plans to restart this pr?
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?