Skip to content

Platform parity - #11

Merged
manhpham90vn merged 5 commits into
mainfrom
platform-parity
Oct 8, 2026
Merged

manhpham90vn merged 5 commits into
mainfrom
platform-parity

Conversation

@manhpham90vn

Copy link
Copy Markdown
Collaborator

No description provided.

- Measure tabular figures as they are drawn: chart legends ("Write 163 K...")
  and axis labels ("977 K...") no longer cut; the axis is as wide as its
  longest label.
- Put a figure, its unit and "of 30.4 GB" on one real baseline (new
  Canvas::baseline, Cairo and DirectWrite) instead of estimated offsets.
- Shrink a stat value that doesn't fit down to 70% before cutting it, as
  macOS's StatGrid does; wrap the Overview hero's summary to two lines.
- Hide an empty OS build ("()" and "Build" on Linux).
- The pkexec root copy is told the desktop's dark preference: it reads
  root's dconf database and turned a System appearance light.
- List services on a worker thread (about a second of systemctl on Linux)
  without holding the monitor lock; the Services screen opens at once.
The background-only state measured 42 MB p90 on CI (32 MB on average)
against the 30 MB target: the first samples read every desktop entry,
GPU and sensor, and glibc kept the freed pages. Trim after the third
sample and once a minute while hidden. bench-linux.py also records the
per-second memory samples in its JSON, to tell growth from a startup peak.
The background-only state grows in 8-11 MB steps on CI (22.6, 33.8, then
42.0 MB) and not on a desktop. The JSON now lists the largest private
anonymous regions with the mapping before each, to tell the heap, thread
arenas and library allocations apart.
On Xvfb GDK still opens an OpenGL context on llvmpipe though the Cairo
renderer never draws with it: libLLVM held 7 MB of private memory on the
runner, and the background-only state grew in 8-11 MB steps on some runs
(42 MB against the 30 MB target). With GDK_DEBUG=gl-disable (GTK 4.14) and
GDK_DISABLE=gl (later versions) it measures 7 MB here.
@manhpham90vn
manhpham90vn merged commit 1c685ae into main Oct 8, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant