Files
sindri/scripts/flame_graph

15 lines
288 B
Bash
Executable File

#!/bin/sh
cd -- "$(dirname -- "$0")/arena-flame-graph" || ( echo "failed to cd"; exit 1 )
if command -v python3 >/dev/null 2>&1; then
PYTHON=python3
elif command -v python >/dev/null 2>&1; then
PYTHON=python
else
echo "error: Python not found" >&2
exit 1
fi
$PYTHON -m http.server