Repository navigation
perf: P0 hygiene and measurement baseline - #9
Open
harshabala wants to merge 3 commits into
Open
harshabala wants to merge 3 commits into
harshabala wants to merge 3 commits into
Conversation
added 3 commits
October 13, 2026 17:05
OSSignposter intervals wrap launch, synchronize, player build, pause and resume. scripts/perf/measure.sh packages a release app, launches it with a throwaway HOME, and records top plus footprint JSON. Playing and paused modes assign a generated fixture through existing ConfigStore assign. No config schema or spaceKey change. Finder duplicate copies are gitignored.
Apple M1, macOS 27.0.1, 20 s samples: idle 13 MB / 0.0% CPU, playing 1080p30 HEVC 18 MB / ~3% CPU, paused 17 MB / 0.0% CPU. Wake-ups and Energy Impact are blank because powermetrics needs sudo. Playing CPU is already above the 1.5% budget.
HOME does not redirect FileManager.userDomainMask on current macOS, so the harness wrote fixtures into the live config. Route config, run marker, and library I/O through LIVELY_APPLICATION_SUPPORT and LIVELY_CONFIG_FILE, use a throwaway UserDefaults suite in perf mode, and record the isolated 30s baseline.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
P0 only: hygiene, measurement harness,
os_signpostintervals, and a baseline. Daily playback is unchanged unlessLIVELY_PERF_MODEis set.Setting
HOMEdoes not redirectFileManager.userDomainMaskon current macOS. The harness now also setsLIVELY_APPLICATION_SUPPORTandLIVELY_CONFIG_FILE, and uses a throwawaycom.lively.app.perfUserDefaults suite. Without those overrides the playing/paused modes write the fixture into the live config.Dependabot
actions/checkout4 → 7 was merged separately as #8.BEFORE (pre-P0)
docs/PERFORMANCE.mdstated its targets were never measured on hardware. Nofootprint/top/ Energy numbers existed.AFTER (isolated 30 s, this branch)
Host: Apple M1, macOS 27.0.1. Release
.appfrom./package.sh(CLT). Isolated Application Support, popover closed, 30 stopafter settle. Fixture1080p30-hevc-silent.mp4. Userconfig_v2.jsonchecksum unchanged (2558921003 1531).footprintresidenttopCPU %sample(1): idle is CFRunLoop waiting; playing is AVPlayer decode; paused still hasfigThreadMainwaiting (hypothesis B hint).Playing CPU is above the 1.5% budget once decode is up (~5.7% of one core). RAM is inside budget. Paused stays ~6 MB above idle.
Discard same-day tables that used
HOMEonly. Those runs mixed the live wallpaper into “idle.”Not measured (need sudo / full Xcode)
sudo powermetrics --samplers tasks --show-process-energy \ --show-process-wait-times -i 1000 -n 30 --process-name Lively xctrace record --template 'Energy Log' --time-limit 30s \ --output /tmp/lively-energy.trace \ --launch -- /private/tmp/LivelyOutput/Lively.app/Contents/MacOS/Lively./test.sh: 97 tests passed (includingAppSupportPathsTests).P1 plan (not in this PR)
Read-only Instruments pass. Rank hypotheses A–N in
docs/PERFORMANCE_MASTER_PLAN.mdwith evidence indocs/perf-findings.md. Do not skip. Do not start P2 until that ranking exists.com.lively.app/Performancesignposts.powermetricsidle wake-ups (hypothesis A, 20 s battery timer).This machine has Command Line Tools only; Energy Log / Time Profiler need Xcode.app.