aboutsummaryrefslogtreecommitdiff
path: root/scripts/ubuntu-install-perf.sh
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-10-08 21:30:21 -0700
committerJoe Wilm <joe@jwilm.com>2016-10-08 21:30:21 -0700
commitb80abe9a54acaea65c5ed4e676a9fbc8e211fd40 (patch)
tree3f3080db9549194652012001c36ee4721098bed1 /scripts/ubuntu-install-perf.sh
parentb91c90dc34cfb2a1381f3bc3da85a7c223ac480f (diff)
downloadalacritty-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-xscripts/ubuntu-install-perf.sh11
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