File tree Expand file tree Collapse file tree 7 files changed +29
-29
lines changed
Expand file tree Collapse file tree 7 files changed +29
-29
lines changed Original file line number Diff line number Diff line change 1919 - name : Flake check
2020 run : nix flake check --all-systems
2121 - name : Build gperf2flamegraph
22- run : nix build '.#gperf2flamegraph '
23- - name : Upload gperf2flamegraph
22+ run : nix build '.#g2f '
23+ - name : Upload g2f
2424 uses : actions/upload-artifact@v4.6.1
2525 with :
2626 name : gperf2flamegraph-${{ matrix.os }}
27- path : result/bin/gperf2flamegraph
27+ path : result/bin/g2f
Original file line number Diff line number Diff line change 1919 nix flake update
2020 - name : Build gperf2flamegraph
2121 run : |
22- nix build '.#gperf2flamegraph '
22+ nix build '.#g2f '
2323 - name : Create Pull Request
2424 run : |
2525 echo "Creating a new pull request..."
Original file line number Diff line number Diff line change 11[package ]
2- name = " gperf2flamegraph "
2+ name = " g2f "
33version = " 0.1.0"
44edition = " 2021"
55authors = [" Emin <cchuqiming@gmail.com>" ]
Original file line number Diff line number Diff line change 1- # ✨ gperf2flamegraph
1+ # ✨ gperf2flamegraph (g2f) ✨
22
33<div align =" center " >
44<img alt =" GitHub " src =" https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge& ; logo=github& ; logoColor=white " >
@@ -39,7 +39,7 @@ cargo build --release
3939## 📖 Usage
4040Basic syntax:
4141``` shell
42- gperf2flamegraph < EXECUTABLE> < PROFILE_FILE> [OPTIONS]
42+ g2f < EXECUTABLE> < PROFILE_FILE> [OPTIONS]
4343```
4444
4545Parameters
@@ -62,12 +62,12 @@ Options
6262
6363### Basic Usage
6464``` shell
65- gperf2flamegraph < gprof_output_file> < output_file>
65+ g2f < gprof_output_file> < output_file>
6666```
6767
6868### With Options
6969``` shell
70- gperf2flamegraph < EXECUTABLE> gprof.prof --svg-output gprof.svg --text-output gprof.txt
70+ g2f < EXECUTABLE> gprof.prof --svg-output gprof.svg --text-output gprof.txt
7171```
7272
7373---
@@ -79,7 +79,7 @@ If you encounter "Failed to start flamegraph.pl" error:
7979``` shell
8080# Option 1: Install FlameGraph and specify path
8181git clone https://github.com/brendangregg/FlameGraph.git
82- ./gperf2flamegraph myapp cpu.prof --svg-output out.svg --flamegraph-path ./FlameGraph/flamegraph.pl
82+ ./g2f myapp cpu.prof --svg-output out.svg --flamegraph-path ./FlameGraph/flamegraph.pl
8383
8484# Option 2: Add FlameGraph to your PATH
8585export PATH=$PATH :$( pwd) /FlameGraph
Original file line number Diff line number Diff line change 3030 in
3131 {
3232 packages = {
33- gperf2flamegraph = pkgs . callPackage ./nix/pkgs/gperf2flamegraph .nix { } ;
34- default = self . packages . ${ system } . gperf2flamegraph ;
33+ g2f = pkgs . callPackage ./nix/pkgs/g2f .nix { } ;
34+ default = self . packages . ${ system } . g2f ;
3535 } ;
3636 devShells . default = pkgs . mkShell {
37- inputsFrom = [ self . packages . ${ system } . gperf2flamegraph ] ;
37+ inputsFrom = [ self . packages . ${ system } . g2f ] ;
3838 nativeBuildInputs = with pkgs ; [ pkg-config ] ;
3939 RUST_SRC_PATH = pkgs . rustPlatform . rustLibSrc ;
4040 PKG_CONFIG_PATH = "${ pkgs . openssl . dev } /lib/pkgconfig" ;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments