You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/skills/trace-analysis/SKILL.md
+23-10Lines changed: 23 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Trace analysis is a relatively complex process involving multiple concepts and t
20
20
| LynxView | Similar to WebView in native developing. Renders bundle within host application’s context. |
21
21
| Pipeline, `debug.pipeline_id`| The lynx pipeline in Lynx development refers to the sequence of steps a Lynx app takes to convert its internal structures into the visual representation that users see and interact with on their screens. |
22
22
| Timing Flags, `debug.timing_flags`| The identifier (flag) of a Pipeline |
23
-
| LoadTemplate, `LynxLoadTemplate`||
23
+
| LoadTemplate, `LynxLoadTemplate`|Load the Lynx Bundle (historical "Template"), resulting in FCP|
From the graph above, it is easy to analyze the critical paths to reach FCP and Hydration, as well as the performance bottlenecks in each stage.
198
207
199
-
When writing SQL queries, pay attention to adding the `instance_id` filter condition.
208
+
**Note:**
209
+
210
+
- When writing SQL queries, pay attention to adding the `debug.instance_id` filter condition.
211
+
- Filter events by joining the `slice` and `args` tables, and use `debug.timing_flags = "Lynx FCP"` or `debug.timing_flags = "react_lynx_hydrate"` to filter events belonging to the FCP or Hydration stage.
212
+
- FCP happens mostly on the Engine Thread, while Hydration involves both the JS Thread and Engine Thread. When analyzing Hydration bottlenecks, consider events on both threads and their dependencies.
200
213
201
214
### 4 Generate Final Report
202
215
203
-
Refer to the format in [Output](#Output) to generate the final analysis report.
216
+
Refer to the format in [Output](#output) to generate the final analysis report.
0 commit comments