Files
sindri/scripts/flame_graph
T
2026-11-14 22:11:49 +01:00

15 lines
264 B
Bash
Executable File

#!/bin/sh
cd 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