Mii rendering and parsing library
at main 1.3 kB view raw
1# This justfile is for my convenience only. 2# Please don't use this unless you need to. 3# 4# Xcode GPU DEBUGGING: 5# How to get your own .xcworkspace (the stupid way) 6# Select Menu Item: Xcode -> Debug executable -> select lightweight_viewer 7# Select Menu Item: File -> Workspace settings 8# In popup: Derived Data -> Workspace-relative Location 9# Press the little (->) button by the path to open it in Finder 10# Copy the .xcworkspace file to somewhere safe 11 12xcode: 13 cargo build --bin lightweight_viewer 14 open ~/Projects/lightweight_viewer.xcworkspace 15 16profile: 17 just profile-instrument 18 19# Requires samply. 20profile-samply: 21 cargo build --bin lightweight_viewer --profile profiling 22 BROWSER=/Applications/Firefox\ Nightly.app/Contents/MacOS/firefox samply record ./target/profiling/lightweight_viewer 23 24profile-samply-debug: 25 cargo build --bin lightweight_viewer 26 BROWSER=/Applications/Firefox\ Nightly.app/Contents/MacOS/firefox samply record ./target/debug/lightweight_viewer 27 28# Requires Xcode (Instruments). 29profile-instrument: 30 cargo build --bin lightweight_viewer --profile profiling 31 rm -rf /tmp/tracefile.trace 32 xcrun xctrace record \ 33 --template "Time Profiler" \ 34 --output /tmp/tracefile.trace \ 35 --launch -- ./target/profiling/lightweight_viewer 36 open /tmp/tracefile.trace