mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 05:41:16 +01:00
record --window-track[=HZ] (off by default, 30 Hz without a value, 1..=120) writes windows.jsonl: a sampler thread lists every top-level window once per tick and writes the full window list only when something changed, plus a keyframe each second, so a still desktop costs about a row a second. platform::window::list gives generic facts (Windows: EnumWindows + DWM cloaked/frame bounds; macOS: CGWindowList bounds and on-screen flag). The manifest records the track (rows, late ticks) and warns if it stopped or fell behind. Analysis::window_track answers 'windows at mach_ns T', and sheet --windows draws each window's rect and label on every frame (cloaked windows dim), or notes that the session has no track. The macOS part (platform/macos/apps.rs window_list) was written against the objc2 sources and is NOT built or run: this was developed on Windows.