Expand description
DevTools — Inspection, profiling, and debugging infrastructure.
Provides:
- Tree Inspector: snapshot the shadow tree into a serializable structure
- Layout Overlay: gather computed layout rectangles for overlay rendering
- Performance Profiler: track frame timing, layout stats, commit counts
- IR Replay: record and replay IR command batches
- WebSocket bridge types (protocol messages)
Structs§
- Frame
Record - A single frame timing record.
- Frame
Timer - Ongoing frame measurement.
- IrRecorder
- Records IR batches for later replay or debugging.
- Layout
Overlay - All computed layout rectangles for overlay rendering.
- Layout
Rect - Computed layout rectangle for a node.
- Node
Snapshot - Serializable snapshot of a single node (for DevTools UI).
- Overlay
Rect - A single overlay rectangle with metadata.
- Profile
Summary - Aggregated profiler statistics.
- Profiler
- Rolling profiler that keeps the last N frames of timing data.
- Timestamped
Batch - An IR batch with its relative timestamp.
Enums§
- DevTools
Request - Messages from DevTools UI → Engine.
- DevTools
Response - Messages from Engine → DevTools UI.
Functions§
- gather_
overlay - Gather all layout rectangles for the overlay.
If
highlight_idis set, that node is marked as highlighted. - handle_
devtools_ request - Handle an incoming DevTools request and produce a response.
- snapshot_
tree - Build a full tree snapshot starting from the root.