#events #measureme

persil

Persil 是一个基于 measureme 的最小化、简单分析库

1 个不稳定版本

0.1.3 2020年8月19日
0.1.2 2020年8月17日
0.1.1 2020年8月17日
0.1.0 2020年8月17日

#287 in 性能分析

Zlib 许可证

9KB
68

Persil

Docs.rs Crates.io

目录

关于

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