mirror of
https://github.com/hyprwm/Hyprland.git
synced 2026-08-24 10:04:19 -05:00
debug/flame-graph: fix script for nixos
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
FLAMEGRAPH_DIR="$SCRIPT_DIR/flamegraph"
|
FLAMEGRAPH_DIR="$SCRIPT_DIR/flamegraph"
|
||||||
@@ -16,5 +16,5 @@ if [ ! -f perf.data ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Generating flame graph..."
|
echo "Generating flame graph..."
|
||||||
perf script | "$FLAMEGRAPH_DIR/stackcollapse-perf.pl" | "$FLAMEGRAPH_DIR/flamegraph.pl" > flame.svg
|
perf script | perl "$FLAMEGRAPH_DIR/stackcollapse-perf.pl" | perl "$FLAMEGRAPH_DIR/flamegraph.pl" > flame.svg
|
||||||
xdg-open flame.svg
|
xdg-open flame.svg
|
||||||
|
|||||||
Reference in New Issue
Block a user