flamescope

Crates.ioflamescope
lib.rsflamescope
version0.1.2
sourcesrc
created_at2019-07-10 03:58:08.88207
updated_at2021-06-09 03:46:42.561786
descriptionExport flame data to speedscopes profile format
homepage
repositoryhttps://github.com/coolreader18/flamescope
max_upload_size
id148003
size10,970
Noa (coolreader18)

documentation

https://docs.rs/flamescope

README

flamescope

Export flame data to speedscope's format.

Usage

use flame;
use flamescope;
use std::fs::File;

fn main() {
    let main_guard = flame::start_guard("main");
    {
        let _scope_guard = flame::start_guard("inner scope");
    }
    main_guard.end();
    flamescope::dump(&mut File::create("flamescope.json").unwrap()).unwrap();
}

License

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

Commit count: 7

cargo fmt