1 个不稳定版本
0.1.3 | 2020年8月19日 |
---|---|
0.1.2 |
|
0.1.1 |
|
0.1.0 |
|
#287 in 性能分析
9KB
68 行
Persil
目录
关于
Persil 是一个用于分析事件的简单且功能强大的库。它基于 Rust 的 measureme,并仅是 measureme 之上的一层简单但强大的封装。
入门
先决条件
- Rust(我没有指定最低版本,请尝试使用最新版本之一)
- 读取序列化数据的工具。(见 此处)
- 显然是一个你想要分析的程序。
安装
将以下内容添加到你的 Cargo.toml
[dependencies]
persil = "0.1.0"
如果你已经安装了 cargo-edit
cargo add persil
用法
请参阅 示例 了解用法。
分析结果
要分析和显示结果,你可以使用 measureme 仓库 中的工具之一。
例如,要使用 summarize
,只需这样做
# if you changed the path to the results, use the new path
summarize trace/my_application
有关更多信息,请参阅 measureme 仓库。
依赖关系
~0.8–1.2MB
~19K SLoC