项目作者: coolreader18

项目描述 :
Export flame data to speedscope's format
高级语言: Rust
项目地址: git://github.com/coolreader18/flamescope.git
创建时间: 2019-07-10T03:57:22Z
项目社区:https://github.com/coolreader18/flamescope

开源协议:MIT License

下载


flamescope

Export flame data to
speedscope‘s format.

Usage

  1. use flame;
  2. use flamescope;
  3. use std::fs::File;
  4. fn main() {
  5. let main_guard = flame::start_guard("main");
  6. {
  7. let _scope_guard = flame::start_guard("inner scope");
  8. }
  9. main_guard.end();
  10. flamescope::dump(&mut File::create("flamescope.json").unwrap()).unwrap();
  11. }

License

This project is licensed under the MIT license. Please see the
LICENSE file for more details.