Skip to content

Commit 4be3daf

Browse files
authored
rework: rename package name to g2f (#3)
Signed-off-by: Qiming Chu <cchuqiming@gmail.com>
1 parent 3f91c43 commit 4be3daf

File tree

7 files changed

+29
-29
lines changed

7 files changed

+29
-29
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
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

.github/workflows/update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
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..."

Cargo.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "gperf2flamegraph"
2+
name = "g2f"
33
version = "0.1.0"
44
edition = "2021"
55
authors = ["Emin <cchuqiming@gmail.com>"]

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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&amp;logo=github&amp;logoColor=white">
@@ -39,7 +39,7 @@ cargo build --release
3939
## 📖 Usage
4040
Basic syntax:
4141
```shell
42-
gperf2flamegraph <EXECUTABLE> <PROFILE_FILE> [OPTIONS]
42+
g2f <EXECUTABLE> <PROFILE_FILE> [OPTIONS]
4343
```
4444

4545
Parameters
@@ -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
8181
git 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
8585
export PATH=$PATH:$(pwd)/FlameGraph

flake.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
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";

0 commit comments

Comments
 (0)