1 Star 0 Fork 0

lycclsltt / blazesym

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README-devel.md 1.36 KB
一键复制 编辑 原始数据 按行查看 历史

Developer Notes

Testing

All our testing is cargo based and a simple

$ cargo test

runs the vast majority of tests. Tests require sudo to be set up properly, as some of the functionality we rely on is privileged. Test artifacts are transparently created as long as the generate-unit-test-files feature is active, which is enabled by default for testing.

Benchmarking

We use a mixture of Criterion end-to-end benchmarks and libtest based unit-test style ones.

To run the full benchmark suite, use:

$ cargo bench --features=nightly --features=generate-large-test-files

For all Criterion powered benchmarks, a run will automatically establish a new base line. You can check out a different change, re-run the above command, and it will print the performance difference.

Profiling

To get a CPU profile in the form of a flamegraph, you can use cargo-flamegraph (can be installed via cargo install flamegraph). The following command will create a profile for the bench_function_parsing_blazesym benchmark, for example:

$ cargo flamegraph --package=blazesym --unit-bench --root --features=nightly -- bench_function_parsing_blazesym
1
https://gitee.com/lycclsltt/blazesym.git
git@gitee.com:lycclsltt/blazesym.git
lycclsltt
blazesym
blazesym
main

搜索帮助