diff options
author | Joe Wilm <joe@jwilm.com> | 2016-10-08 21:30:21 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-10-08 21:30:21 -0700 |
commit | b80abe9a54acaea65c5ed4e676a9fbc8e211fd40 (patch) | |
tree | 3f3080db9549194652012001c36ee4721098bed1 /scripts/ubuntu-install-perf.sh | |
parent | b91c90dc34cfb2a1381f3bc3da85a7c223ac480f (diff) | |
download | alacritty-b80abe9a54acaea65c5ed4e676a9fbc8e211fd40.tar.gz alacritty-b80abe9a54acaea65c5ed4e676a9fbc8e211fd40.zip |
Add script for creating flamegraph with perf
Resolves #8
Diffstat (limited to 'scripts/ubuntu-install-perf.sh')
-rwxr-xr-x | scripts/ubuntu-install-perf.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/ubuntu-install-perf.sh b/scripts/ubuntu-install-perf.sh new file mode 100755 index 00000000..85670039 --- /dev/null +++ b/scripts/ubuntu-install-perf.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +set -v + +# Get kernel info +UNAME=$(uname -r) + +# Install linux tools for the perf binary +sudo apt-get install -y \ + linux-tools-common \ + linux-tools-generic \ + linux-tools-$UNAME |