Bench: edits timed at the drawn tile; per-cycle document counts; posted chords
release / macos (arm64, macos-15) (push) Canceled after 0s
release / macos (x86_64, macos-15-intel) (push) Canceled after 0s

This commit is contained in:
ZacharyZhang-NY committed 2026-10-08 22:22:29 -04:00
1 parent 946e5cf835
commit 98d7e75fca
7 files changed
+93 -30

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
// Posts Command plus a key to one process, flag included.
import CoreGraphics
import Foundation
// chord <pid> <virtual key code>
let pid = pid_t(CommandLine.arguments[1])!
let code = CGKeyCode(CommandLine.arguments[2])!
let source = CGEventSource(stateID: .privateState)
for down in [true, false] {
let event = CGEvent(keyboardEventSource: source, virtualKey: code, keyDown: down)!
event.flags = .maskCommand
event.postToPid(pid)
usleep(30_000)
}