4 releases

0.1.3 Aug 29, 2024
0.1.2 Jun 9, 2021
0.1.1 Jul 10, 2019
0.1.0 Jul 10, 2019

#2791 in Parser implementations

Download history 189/week @ 2025-10-31 377/week @ 2025-11-07 258/week @ 2025-11-14 485/week @ 2025-11-21 124/week @ 2025-11-28 782/week @ 2025-12-05 118/week @ 2025-12-12 429/week @ 2025-12-19 317/week @ 2025-12-26 484/week @ 2026-01-02 515/week @ 2026-01-09 475/week @ 2026-01-16 566/week @ 2026-01-23 758/week @ 2026-01-30 1032/week @ 2026-02-06 1026/week @ 2026-02-13

3,478 downloads per month
Used in rustpython

MIT license

9KB
140 lines

Export flame data to speedscope's profile format.

Base profile's are derived from top-level spans, so it's recommended to ensure that you have an appropriately named span that encompasses the entire run of the program.


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.

Dependencies

~2–3.5MB
~59K SLoC