Repository navigation
docs(perf): Rank P1 hypotheses from CLT profiles - #10
Draft
harshabala wants to merge 1 commit into
Draft
harshabala wants to merge 1 commit into
harshabala wants to merge 1 commit into
Conversation
xctrace needs full Xcode and powermetrics needs sudo, so this pass uses top, footprint, sample, heap, and vmmap. Muted audio is the largest playing cost; paused playback keeps CoreMedia and IOSurface. Idle CPU is already 0.0% with the 20 s battery timer still firing once.
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.
P1 is read-only: rank hypotheses A–N. Playback, config schema, and user settings are unchanged.
This machine has Command Line Tools, not full Xcode, so Time Profiler / Allocations / Energy Log / System Trace did not run. The ranking uses
top,footprint,sample(1),heap, andvmmapon the isolated harness.powermetricsstill needs sudo.Stacked on #9 (
perf/p0-hygiene-baseline).BEFORE (P0 budget clip)
1080p30 HEVC silent, isolated 30 s: idle 0.0% / 14 MB, playing ~5% / 21 MB, paused 0.13% / 20 MB. Playing already misses the 1.5% CPU budget. Wake-ups and Energy Impact were blank.
AFTER (P1 fixture comparison, 2026-10-14, Apple M1)
footprintMuted audio still builds AudioToolbox (
AQMEIO_HAL::IOProc). Paused keepsfigThreadMainand ~82 MB IOSurface virtual. Idlesamplecaught one__NSFireTimerfrom the 20 s battery timer; idletopstayed 0.0%.Ranked next work is in
docs/perf-findings.md: H (disable audio tracks when muted), then J (cap/transcode to 1080p30, not 5K-native), then B (cold pause), then A/E/F (wake-ups). P2 is not in this PR.Still need the operator / Xcode