Valiantsin Dzerakh and Claude Opus 5.5
ba52fe6e89
Record the critical path of the frame with TOTK_CRIT
...
With TOTK_TRACE=sched, TOTK_CRIT=<lo>-<hi> records every state change and wake of the guest threads and every
present over those frames (runtime/kernel.c crit_add from acct() and wake(), crit_frame at the present) and writes
them to TOTK_CRIT_OUT at the last frame. tools/crit_path.py walks back from each present through the waits to the
thread whose signal ended them and splits the frame interval by thread and state; the sums equal the interval.
A 1.4.3 fight: with the replay on the submitting thread the path is 7.3 ms of replay on the render thread and 4.3 ms
of guest code; with TOTK_REPLAY_ASYNC=1 it is 10.1 ms of guest code through the fork-join of the main thread and five
workers, at the same frame interval.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-28 09:26:07 +03:00
..
2026-10-27 16:22:11 +03:00
2026-10-27 13:40:34 +03:00
2026-10-23 23:54:57 +03:00
2026-10-27 15:24:14 +03:00
2026-10-25 18:28:00 +03:00
2026-10-25 18:28:00 +03:00
2026-10-23 22:27:54 +03:00
2026-10-23 22:27:54 +03:00
2026-10-27 13:12:50 +03:00
2026-10-23 22:27:54 +03:00
2026-10-23 22:27:54 +03:00
2026-10-23 22:27:54 +03:00
2026-10-23 22:27:54 +03:00
2026-10-27 13:40:34 +03:00
2026-10-26 09:32:30 +03:00
2026-10-28 09:26:07 +03:00
2026-10-26 20:55:08 +03:00
2026-10-27 18:07:58 +03:00
2026-10-23 22:27:54 +03:00
2026-10-23 22:27:54 +03:00
2026-10-26 09:32:30 +03:00
2026-10-23 22:27:54 +03:00
2026-10-27 15:21:41 +03:00
2026-10-27 11:01:54 +03:00
2026-10-27 11:01:54 +03:00
2026-10-27 13:40:34 +03:00
2026-10-27 13:40:34 +03:00
2026-10-25 08:39:47 +03:00
2026-10-24 10:41:54 +03:00
2026-10-23 22:27:54 +03:00
2026-10-27 13:12:50 +03:00
2026-10-26 09:49:15 +03:00
2026-10-27 15:21:41 +03:00
2026-10-27 13:12:50 +03:00
2026-10-27 15:21:41 +03:00
2026-10-27 16:42:14 +03:00
2026-10-26 09:51:56 +03:00
2026-10-24 08:50:48 +03:00
2026-10-27 11:40:33 +03:00
2026-10-26 09:49:15 +03:00
2026-10-27 13:12:50 +03:00
2026-10-23 22:27:54 +03:00
2026-10-26 09:32:30 +03:00
2026-10-28 09:26:07 +03:00
2026-10-23 22:27:54 +03:00
2026-10-26 17:50:40 +03:00
2026-10-27 16:22:11 +03:00
2026-10-27 13:40:34 +03:00
2026-10-23 22:27:54 +03:00
2026-10-23 22:27:54 +03:00
2026-10-23 22:27:54 +03:00
2026-10-27 10:17:14 +03:00
2026-10-27 16:42:14 +03:00
2026-10-26 20:39:13 +03:00
2026-10-27 13:12:50 +03:00
2026-10-25 00:45:56 +03:00
2026-10-23 22:27:54 +03:00
2026-10-26 14:31:41 +03:00
2026-10-23 22:27:54 +03:00
2026-10-23 22:27:54 +03:00
2026-10-27 13:12:50 +03:00
2026-10-23 22:27:54 +03:00
2026-10-27 13:12:50 +03:00
2026-10-26 14:31:41 +03:00
2026-10-23 22:27:54 +03:00
2026-10-23 22:27:54 +03:00
2026-10-27 13:12:50 +03:00
2026-10-26 09:32:30 +03:00
2026-10-27 13:12:50 +03:00
2026-10-26 17:50:40 +03:00
2026-10-27 13:12:50 +03:00
2026-10-27 16:42:14 +03:00
2026-10-27 13:12:50 +03:00
2026-10-26 17:50:40 +03:00
2026-10-27 15:21:41 +03:00
2026-10-27 15:21:41 +03:00
2026-10-27 11:40:32 +03:00
2026-10-23 22:27:54 +03:00
2026-10-27 15:21:41 +03:00
2026-10-23 22:27:54 +03:00
2026-10-27 13:40:34 +03:00
2026-10-23 22:27:54 +03:00
2026-10-23 22:27:54 +03:00
2026-10-27 11:01:54 +03:00
2026-10-26 17:50:40 +03:00
2026-10-26 20:55:08 +03:00
2026-10-26 20:55:08 +03:00
2026-10-23 22:27:54 +03:00
2026-10-23 22:27:54 +03:00
2026-10-25 14:14:46 +03:00
2026-10-27 13:12:50 +03:00
2026-10-27 13:12:50 +03:00
2026-10-26 16:48:02 +03:00
2026-10-24 19:35:33 +03:00
2026-10-26 16:48:02 +03:00
2026-10-27 15:21:41 +03:00
2026-10-27 15:21:41 +03:00
2026-10-26 09:32:30 +03:00
2026-10-27 13:40:34 +03:00
2026-10-27 13:12:50 +03:00
2026-10-27 16:05:24 +03:00
2026-10-26 16:26:11 +03:00
2026-10-27 15:54:00 +03:00
2026-10-27 13:40:34 +03:00
2026-10-27 13:12:50 +03:00
2026-10-27 15:53:59 +03:00
2026-10-27 15:54:00 +03:00
2026-10-27 13:12:50 +03:00
2026-10-27 13:40:34 +03:00
2026-10-27 16:05:24 +03:00
2026-10-27 13:12:50 +03:00
2026-10-27 13:12:50 +03:00
2026-10-27 13:12:50 +03:00
2026-10-27 13:12:50 +03:00
2026-10-23 22:27:54 +03:00
2026-10-27 16:05:24 +03:00