https://github.com/coolreader18/flamescope
Export flame data to speedscope's format
https://github.com/coolreader18/flamescope
flamegraph profiling rust
Last synced: 3 months ago
JSON representation
Export flame data to speedscope's format
- Host: GitHub
- URL: https://github.com/coolreader18/flamescope
- Owner: coolreader18
- License: mit
- Created: 2019-07-10T03:57:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-21T19:34:04.000Z (over 3 years ago)
- Last Synced: 2024-04-20T05:40:18.736Z (almost 2 years ago)
- Topics: flamegraph, profiling, rust
- Language: Rust
- Homepage:
- Size: 10.7 KB
- Stars: 34
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flamescope
Export [flame](https://github.com/TyOverby/flame) data to
[speedscope](https://www.speedscope.app/)'s format.
## Usage
```rust
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](LICENSE) file for more details.