This file contains full copy-paste command sequences to test all template examples.
Run from repository root:
REPO_ROOT="$(pwd)"
cargo build --bin stylus-tracerm -rf /tmp/m4-check-starter
cp -R "$REPO_ROOT"/templates/starter-repo /tmp/m4-check-starter
cd /tmp/m4-check-starter
"$REPO_ROOT"/target/debug/stylus-trace diff \
profiles/baseline.json \
profiles/current_profile.json \
--output artifacts/diff/diff_report.json \
--flamegraph artifacts/diff/diff.svg \
--summary
ls -la artifacts/diffExpected:
artifacts/diff/diff_report.jsonartifacts/diff/diff.svg
rm -rf /tmp/m4-check-education
cp -R "$REPO_ROOT"/templates/education /tmp/m4-check-education
cd /tmp/m4-check-education
"$REPO_ROOT"/target/debug/stylus-trace diff \
profiles/baseline.json \
profiles/current_profile.json \
--output artifacts/diff/diff_report.json \
--flamegraph artifacts/diff/diff.svg \
--summary
ls -la artifacts/diffExpected:
artifacts/diff/diff_report.jsonartifacts/diff/diff.svg
This verifies template structure and diff artifact generation.
rm -rf /tmp/m4-check-orbit
cp -R "$REPO_ROOT"/templates/orbit /tmp/m4-check-orbit
cd /tmp/m4-check-orbit
cp artifacts/capture/baseline.json artifacts/capture/current_profile.json
"$REPO_ROOT"/target/debug/stylus-trace diff \
artifacts/capture/baseline.json \
artifacts/capture/current_profile.json \
--output artifacts/diff/diff_report.json \
--flamegraph artifacts/diff/diff.svg \
--summary
ls -la artifacts/diffExpected:
artifacts/diff/diff_report.jsonartifacts/diff/diff.svg
Workflow file:
templates/orbit/.github/workflows/orbit-performance.yml
- Variable:
ORBIT_RPC_URL - Variable:
ORBIT_TX_HASH - Secret:
ORBIT_CHAIN_ID
- Copy the workflow file into your target repository at
.github/workflows/orbit-performance.yml. - Commit/push.
- Trigger
workflow_dispatchin GitHub Actions. - Confirm job
orbit-profileis green. - Confirm artifact
orbit-stylus-trace-artifactsis uploaded.
Workflow file:
templates/starter-repo/.github/workflows/performance.yml
- Copy into target repository
.github/workflows/performance.yml. - Commit/push (or open PR).
- Confirm job
profileis green on first run. - Confirm artifact
stylus-trace-artifactsis uploaded. - Optionally set vars for live capture:
STYLUS_TRACE_RPC_URLSTYLUS_TRACE_TX_HASH