pub fn export_ownership_graph_json<P: AsRef<Path>>(
base_path: P,
allocations: &[AllocationInfo],
event_store: &EventStore,
) -> MemScopeResult<()>Expand description
Export ownership graph analysis to JSON
This function exports the ownership graph including:
- Node information (objects with their types and sizes)
- Edge information (clone relationships)
- Detected cycles (Rc/Arc retain cycles)
- Diagnostics (clone storms, cycle warnings)