turtle 1.0.0-alpha.6

Turtle Graphics in Rust
Documentation
#!/usr/bin/env bash

set -e

if [ $# -eq 0 ]; then
    echo "Please provide the name of an example to profile"
    exit 1
fi

RUSTFLAGS='-C debuginfo=2' cargo build --release --example "$1"
perf record -g "target/release/examples/$1" --bench "$1"
perf script | stackcollapse-perf | flamegraph > flame.svg

echo "Flamegraph written to 'flame.svg'"