5 个不稳定版本
使用旧的 Rust 2015
0.3.0 | 2018年4月29日 |
---|---|
0.2.2 | 2018年1月6日 |
0.1.3 | 2017年5月21日 |
0.1.1 | 2017年2月13日 |
0.1.0 | 2017年2月9日 |
#283 在 性能分析 中
2,040 每月下载量
在 少于 45 crates 中使用
7KB
139 行
线程分析器
这是一个简单的 CPU 分析器,用于 WebRender。它可以输出为 跟踪事件格式。
有关用法和相关工具的更多信息,请参阅 https://aras-p.info/blog/2017/01/23/Chrome-Tracing-as-Profiler-Frontend/
连接
为每个线程调用 register_thread_with_profiler
。
需要保存结果时调用 write_profile
。
查看结果
使用 Chrome:转到 chrome://tracing
并点击“加载”。
独立版:检出并编译 catapult,然后调用 trace2html
。
依赖项
~1–1.7MB
~32K SLoC