We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6fe43d commit cf131f5Copy full SHA for cf131f5
scripts/log.ps1
@@ -147,8 +147,8 @@ if ($IsLinux) {
147
sudo apt-get install -y lttng-tools
148
sudo apt-get install -y liblttng-ust-dev
149
}
150
- perf version 2>&1 | Out-Null
151
- if (!$?) {
+ try { perf version | Out-Null }
+ catch {
152
Write-Debug "Installing perf"
153
sudo apt-get install -y linux-tools-$(uname -r)
154
sudo wget https://raw.githubusercontent.com/brendangregg/FlameGraph/master/stackcollapse-perf.pl -O /usr/bin/stackcollapse-perf.pl
0 commit comments