Open History to see the last commit
1/** Input points for mobile:metrics' perf windows; null unless the env-gated behavior probe loaded. */
2export interface PerfProbe {
3 readonly touchStart: () => void;
4 readonly touchEnd: () => void;
5 /** A native menu item's JS handler ran: the first point JS sees of a tap inside a native menu. */
6 readonly menuAction: () => void;
7 /** The composer's text changed: one key. */
8 readonly key: () => void;
9 /** A thread's timeline rows became visible. */
10 readonly contentShown: (thread: string) => void;
11}
12
13// behavior-probe-entry runs before the app's modules in index.ts, so this is read after it installs.
14export const perfProbe: PerfProbe | null =
15 (globalThis as { __t3PerfProbe?: PerfProbe }).__t3PerfProbe ?? null;