circuitry_devtools_extension 0.5.1
circuitry_devtools_extension: ^0.5.1 copied to clipboard
Dedicated Flutter DevTools extension for inspecting Circuitry dependency graphs, topological waves, and runtime container health.
Changelog #
0.5.1 #
Bug Fixes #
- Live VM Service Connection: Fixed
CircuitryDevToolsAppfalling back toMockCircuitryServiceClienton initial build beforeserviceManager.connectedStatebecame active. Now listens toserviceManager.connectedStateand switches toVmCircuitryServiceClientupon connection, and recreates the controller if the client changes on reconnect. - Isolate-Scoped Extension Calls: Updated
VmCircuitryServiceClientto resolve and pass the targetisolateIdtoext.circuitry.getCircuits,ext.circuitry.getCircuitGraph, andext.circuitry.forceResolveWireso registered circuits are discovered properly.
0.5.0 #
Performance #
- Background Isolate Offloading:
- Offloaded
getCircuitGraphJSON deserialization to a background isolate using Flutter foundationcompute(), preventing UI frame drops during large graph payload ingestion. - Offloaded export formatting (Mermaid, formatted JSON, SVG markup) to background isolates via
compute().
- Offloaded
- DAG Canvas Rendering Engine Overhaul:
- Pre-computed and cached
_DagCanvasLayoutgeometry (node coordinates, spline coordinates, and composite edge paths). - Eliminated runtime allocations of
PathandPaintduring interactive pan and zoom gestures (60/120 FPS rendering). - Batched edge draw calls: unselected DAG edges render via a single composite
canvas.drawPathcall; selected DAGs batch dimmed edges into a single path. - Wrapped
CustomPaintandInteractiveViewerinRepaintBoundaryto prevent canvas repainting during external UI changes.
- Pre-computed and cached
- Fine-Grained UI Partitioning:
- Removed monolithic
ListenableBuilderwrapping the entireScaffold. - Scoped controllers and wrapped each split pane (
CircuitNavigator,DevToolsAreaPane,WireDetailDrawer, andDevToolsToolbar) with isolatedRepaintBoundarylayers.
- Removed monolithic
- Debounced Search & Filtering:
- Added a 150ms debounce on search queries to eliminate layout recalculation and filtering churn on every keystroke.
- Serialization Model Updates:
- Added
CircuitGraphData.toJson()to support structured cloning and reliable cross-isolate serialization.
- Added
0.2.0 #
Initial public release of Circuitry DevTools Extension as a standalone opt-in companion tool.
Features #
- Standalone Companion Package: Opt-in developer tool added to
dev_dependencieswithout bloating runtime app bundles. - Explicit Registration API:
registerCircuitryDevToolsExtension()enables Dart VM Service extensions (ext.circuitry.*) and live telemetry streaming.unregisterCircuitryDevToolsExtension()disables extensions and silences telemetry.CircuitryDevTools.register()andCircuitryDevTools.unregister()static namespace accessors.
- Interactive DAG Canvas: Visualizes topological wave columns with cubic Bézier spline edge routing, wire node selection, and status badges.
- Wave Waterfall Profiler: Visualizes startup wave resolution timeline, critical path analysis, and cumulative latency metrics.
- Multi-Scope Circuit Navigator: Switch between multiple active
Circuitinstances and tagged scopes. - Live Wire Inspector: Inspect wire configurations, dependencies, direct/transitive dependents, and trigger on-demand singleton initialization via
ext.circuitry.forceResolveWire. - Multi-Format Exporters: Export graphs to Mermaid flowchart diagrams, structured JSON, or SVG markup.