Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrhooray/torch
Generate CPU FlameGraphs based on DWARF Debug Info
https://github.com/mrhooray/torch
cpu dwarf flamegraph perf rust
Last synced: about 2 months ago
JSON representation
Generate CPU FlameGraphs based on DWARF Debug Info
- Host: GitHub
- URL: https://github.com/mrhooray/torch
- Owner: mrhooray
- Created: 2015-08-25T01:24:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-20T03:14:38.000Z (about 7 years ago)
- Last Synced: 2024-04-22T13:31:37.151Z (9 months ago)
- Topics: cpu, dwarf, flamegraph, perf, rust
- Language: Perl
- Homepage:
- Size: 147 KB
- Stars: 131
- Watchers: 4
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-rust-cn - mrhooray/torch
- awesome-rust - mrhooray/torch
- awesome-rust - mrhooray/torch
- awesome-rust-cn - mrhooray/torch
- awesome-rust-zh - mrhooray/torch - 基于 DWARF 调试信息,生成 FlameGraphs (开发工具 / 剖析)
- awesome-rust - mrhooray/torch - generates FlameGraphs based on DWARF Debug Info (Development tools / Profiling)
- awesome-rust - mrhooray/torch
- fucking-awesome-rust - mrhooray/torch - generates FlameGraphs based on DWARF Debug Info (Development tools / Profiling)
- fucking-awesome-rust - mrhooray/torch - generates FlameGraphs based on DWARF Debug Info (Development tools / Profiling)
README
# torch
> A script that glues perf CPU sampling and [Brendan Gregg's visualizer](https://github.com/brendangregg/FlameGraph) to generate FlameGraphs.* [Requirements](#requirements)
* [Usage](#usage)
* [Examples](#examples)
* [License](#license)## Requirements
Linux 3.7 and above## Usage
```
#./torch.sh -h
Usage: ./torch.sh [options] pidOptions:
-d, --duration duration of sampling in seconds [default: 10]
-o, --output file to save flamegraph to [default: ./flamegraph.svg]
-h, --help this message
```## Examples
### Click graph to zoom
A loop printing stuff ([source](https://github.com/mrhooray/torch/blob/master/examples/loop.rs))
[![loop](https://cdn.rawgit.com/mrhooray/torch/master/examples/loop.svg)](https://cdn.rawgit.com/mrhooray/torch/master/examples/loop.svg)
Tcp Echo Server ([source](https://github.com/mrhooray/torch/blob/master/examples/tcp-echo-server.rs)) with [coio-rs](https://github.com/zonyitoo/coio-rs)
[![tcp-echo-server](https://cdn.rawgit.com/mrhooray/torch/master/examples/tcp-echo-server.svg)](https://cdn.rawgit.com/mrhooray/torch/master/examples/tcp-echo-server.svg)
HTTP Hello World ([source](https://github.com/mrhooray/torch/blob/master/examples/http-hello-world.rs)) with [hyper](https://github.com/hyperium/hyper)
[![http-hello-world](https://cdn.rawgit.com/mrhooray/torch/master/examples/http-hello-world.svg)](https://cdn.rawgit.com/mrhooray/torch/master/examples/http-hello-world.svg)## License
MIT
CDDL