Commit 28d1bd9
authored
- Add INP (Interaction to Next Paint) tracking via 98th-percentile sampling
- Add TTI (Time to Interactive) measurement with 5s quiet-window state machine
- Replace frame-drop CLS proxy with spec-compliant layout shift score accumulation
using 5-second session windows and 1-second gap detection
- Add per-screen vitals breakdown (ScreenVitals map, updated on every LCP/FID/CLS/TTI/INP)
- Add vitals history ring-buffer (VitalsSnapshot, 100-entry cap) snapshotted on every route change
- Add AppState monitoring for foreground/background transitions with duration tracking
- Add VitalRating system (good/needs-improvement/poor) for all five CWV metrics
- Extend PerformanceBudget with ttiMs, inpMs, clsScore (score-based, not frame count)
- Extend RumSession payload with ratedVitals, screenVitals, vitalsHistory, appStateChanges
- Reset TTI state machine on app foreground resume and on route transitions
- metro.config.js: add profiler-friendly minifier config (keep_fnames/keep_classnames in dev)
- metro.config.js: add extraNodeModules alias and METRO_BUNDLE_REPORT budget reporter
- Backward-compatible: trackFrameDrop() delegates to trackLayoutShift(), clsFrameDrops budget alias kept
1 parent da085b6 commit 28d1bd9
2 files changed
Lines changed: 630 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
19 | 29 | | |
20 | 30 | | |
21 | 31 | | |
| |||
25 | 35 | | |
26 | 36 | | |
27 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
28 | 47 | | |
29 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
30 | 95 | | |
31 | 96 | | |
| 97 | + | |
| 98 | + | |
32 | 99 | | |
33 | | - | |
34 | 100 | | |
35 | 101 | | |
0 commit comments