mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-12-02 13:14:11 +01:00
feat(time): one clock for every time argument, and no slow handlers that are really delivery delay
at, range, frames and locate --utc now read any TimeSpec form (falling back to
video timecodes, so existing usage is unchanged). New: logtime:HH:MM:SS[.mmm[uuu]]
(also log-time: and wall:HH:MM:SS), a UTC time of day on the session's date, the
one inside the recording if it crosses midnight. A bare time of day stays video time.
komorebi's own send time (its 'pushed notification' log line) is now lined up with
events in order, so an event received long after it was sent still pairs with its
handler. Pair gains pushed_mach_ns and delivery_ms, and a handler view shows
pushed_video_s and delivery_ms beside the receive time. slow-handler without a push
time is info and says it may be delivery delay; a new delivery-batching finding
(info) describes notifications delivered in clumps. A bare process_command{Cmd(arg)}
span is now read as the command (it was nameless), and commands that differ only in
arguments are separate handlers.
No cfg(target_os = "macos") code touched.
This commit is contained in:
1 parent
11f028b8c9
commit
f3811fc24f
13 files changed
+928
-43
No files matched your search
@@ -93,8 +93,14 @@ komorebi-recorder annotate <session> add --kind bug --start 12.5 --end 18 \
|
||||
komorebi-recorder annotations <session>
|
||||
```
|
||||
|
||||
Times can be a video timecode (`12.5`, `1:02.5`), `wall:<RFC 3339>`, `event:<seq>`, `log:<line>`, `incident:<n>` or
|
||||
`bug:<id>` (`.start` or `.end`), each with an offset such as `+3s`. `event:12` is when komorebi began handling event 12
|
||||
Times can be a video timecode (`12.5`, `1:02.5`), `logtime:<HH:MM:SS.mmm>`, `wall:<RFC 3339>`, `mach:<ns>`,
|
||||
`event:<seq>`, `log:<line>`, `incident:<n>` or `bug:<id>` (`.start` or `.end`), each with an offset such as `+3s`. Every
|
||||
command that takes a time (`at`, `range`, `frames`, `trace`, `diff`, `events`, ...) takes all of them.
|
||||
|
||||
`logtime:15:46:22.743` is a time of day as komorebi's log writes it (UTC), so a log line can be quoted as it is; the
|
||||
date comes from the recording (the one on which the time falls inside it, if the recording crosses midnight).
|
||||
`wall:15:46:22.743` means the same. It needs the prefix because a bare `1:02:03` is video time, and the two cannot be
|
||||
told apart by their digits. `event:12` is when komorebi began handling event 12
|
||||
and `event:12.end` when it finished.
|
||||
|
||||
## Commands
|
||||
@@ -138,6 +144,10 @@ the same.
|
||||
|
||||
- The event timestamp is when komorebi finished the handler. Time spent waiting for its lock or in accessibility calls
|
||||
before the handler's first log line is invisible, so `handler_ms` is a lower bound.
|
||||
- The recorder can receive notifications long after komorebi sent them, and in clumps. komorebi's own send time is its
|
||||
`pushed notification to subscriber:` DEBUG line; `events --json` shows it as `pushed_video_s` next to the received
|
||||
`video_s`, with `delivery_ms` between them, and `overview` reports a `delivery-batching` finding (info) instead of a
|
||||
slow handler. A `slow-handler` finding in a log without push lines is marked as possibly delivery delay.
|
||||
- At the default `info` level there is no log line for the end of an event handler, and few for the decisions inside it.
|
||||
Start komorebi with `--log-level trace` before recording a bug you intend to investigate.
|
||||
- The `rect` of a window in the state is read live from the accessibility API when the state is serialized: it is where
|
||||
|
||||
@@ -186,7 +186,8 @@ session.
|
||||
|
||||
## Asking questions of a session
|
||||
|
||||
Times are video timecodes: `12.5`, `00:12.500` or `1:02:03`. Video `00:00.000` is the first captured frame.
|
||||
Times are video timecodes: `12.5`, `00:12.500` or `1:02:03`, or a time from komorebi's log such as
|
||||
`logtime:15:46:22.743` (UTC), or `wall:...`, `event:12`. Video `00:00.000` is the first captured frame.
|
||||
|
||||
```
|
||||
# everything within +-1s of 12.5s, grouped by source
|
||||
|
||||
Reference in new issue
Block a user