Skip to content

Commit b8e2ae0

Browse files
committed
Install flamegraph
1 parent b10d581 commit b8e2ae0

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

.dev/install-flamegraph

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
INSTALLATION_PATH=${FG_PATH:-/usr/bin}
5+
6+
wget -nv https://raw.githubusercontent.com/brendangregg/FlameGraph/master/flamegraph.pl -O ${INSTALLATION_PATH}/flamegraph.pl
7+
chmod +x ${INSTALLATION_PATH}/flamegraph.pl

.github/workflows/build.yml

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
redis-version: 7
4444
- name: Install dependencies
4545
run: make install
46+
- name: Install flamegraph
47+
run: make flamegraph-install
4648
- name: run lint
4749
run: make lint-test
4850
- name: build docs

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,8 @@ docs-serve: ## serve documentation
6868
.PHONY: readme
6969
readme: ## generate readme.md
7070
cp docs/index.md readme.md
71+
72+
73+
.PHONY: flamegraph
74+
flamegraph-install: ## install flamegraph
75+
@./.dev/install-flamegraph

0 commit comments

Comments
 (0)