Skip to content

Commit 4d0d253

Browse files
committed
some code for profiling the app
1 parent dc29a7e commit 4d0d253

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

contrib/install_pyflame.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apt-get -q -y update
2+
apt-get install -q -y software-properties-common
3+
apt-add-repository -y ppa:trevorjay/pyflame
4+
apt-get -q -y update
5+
apt-get install -q -y pyflame
6+
# apt-add-repository ppa:trevorjay/pyflame
7+
# apt-get install -q -y autoconf automake autotools-dev g++ pkg-config python-dev python3-dev libtool make
8+
# cd /opt
9+
# git clone https://github.com/uber/pyflame.git
10+
# cd pyflame
11+
# ./autogen.sh
12+
# ./configure
13+
# make
14+
# # make check # Optional, test the build! Should take < 1 minute.
15+
# make install
16+
17+
# https://pyflame.readthedocs.io/en/latest/faq.html
18+
# checkout: https://github.com/brendangregg/FlameGraph
19+
# pyflame -s 200 -o /host/Users/fl/Code/FlameGraph/aleph -p 2365

0 commit comments

Comments
 (0)