rust程序性能分析with Flame Graphs

https://github.com/cambrian/accumulator/blob/master/flamegraph.sh中有利用火焰图进行性能分析。

dtrace在linux 4.15系统版本上编译安装存在Redefinition of `struct in6_addr’ 问题。

Mina Kimchi SNARK库 也使用了flamegraph进行性能优化。

详细的Cargo flamegraph可参见:

$ sudo CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph --bin flamegraph --notes "proof creation" -- prove --root
    Finished release [optimized + debuginfo] target(s) in 0.23s
dtrace: system integrity protection is on, some features will not be available

dtrace: description 'profile-997 ' matched 1 probe
dtrace: error on enabled probe ID 1 (ID 199: profile:::profile-997): invalid address (0x9a15b87e72e8cd4b) in action #2
dtrace: error on enabled probe ID 1 (ID 199: profile:::profile-997): invalid address (0xffffefff) in action #2
dtrace: error on enabled probe ID 1 (ID 199: profile:::profile-997): invalid address (0x5a430fbd) in action #2
dtrace: error on enabled probe ID 1 (ID 199: profile:::profile-997): invalid address (0x4000) in action #2
dtrace: error on enabled probe ID 1 (ID 199: profile:::profile-997): invalid address (0x5a430fbd) in action #2
^C
writing flamegraph to "flamegraph.svg"

参考资料:
[1] https://github.com/brendangregg/FlameGraph
[2] http://www.brendangregg.com/flamegraphs.html
[3] https://www.usenix.org/conference/atc17/program/presentation/gregg-flame
[4] https://github.com/cambrian/accumulator/blob/master/flamegraph.sh
[5] https://github.com/dtrace4linux/linux/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值