Skip to content

Instantly share code, notes, and snippets.

@wynemo
Created May 30, 2018 10:29
Show Gist options
  • Save wynemo/e37346755422cc59e36dc1db93aebbbf to your computer and use it in GitHub Desktop.
Save wynemo/e37346755422cc59e36dc1db93aebbbf to your computer and use it in GitHub Desktop.
user@conti-del-lp-099:~/Downloads/pyflame$ find /home/user/miniconda3 -iname python-*.pc
/home/user/miniconda3/envs/py2k/lib/pkgconfig/python-2.7.pc
/home/user/miniconda3/envs/py3k/lib/pkgconfig/python-3.6m.pc
/home/user/miniconda3/envs/py3k/lib/pkgconfig/python-3.6.pc
/home/user/miniconda3/pkgs/python-3.6.4-hc3d631a_1/lib/pkgconfig/python-3.6m.pc
/home/user/miniconda3/pkgs/python-3.6.4-hc3d631a_1/lib/pkgconfig/python-3.6.pc
/home/user/miniconda3/pkgs/python-3.6.3-h6c0c0dc_5/lib/pkgconfig/python-3.6m.pc
/home/user/miniconda3/pkgs/python-3.6.3-h6c0c0dc_5/lib/pkgconfig/python-3.6.pc
/home/user/miniconda3/pkgs/python-2.7.15-h1571d57_0/lib/pkgconfig/python-2.7.pc
/home/user/miniconda3/lib/pkgconfig/python-3.6m.pc
/home/user/miniconda3/lib/pkgconfig/python-3.6.pc
export PKG_CONFIG_PATH=/home/user/miniconda3/lib/pkgconfig
git clone https://github.com/uber/pyflame.git
./autogen.sh
./configure
make
sudo src/pyflame -x -s 60 -r 0.01 -p 19047|~/Downloads/FlameGraph/flamegraph.pl > /tmp/test.svg
#view this svg in chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment