getCompleteHierarchyInfo static method

Map<String, dynamic> getCompleteHierarchyInfo()

Get comprehensive hierarchy information

Implementation

static Map<String, dynamic> getCompleteHierarchyInfo() {
  final rootScope = Zen.rootScope;
  final allScopes = ZenScopeManager.getAllScopes();

  return {
    'currentScope': ZenScopeInspector.toDebugMap(Zen.currentScope),
    'rootScope': ZenScopeInspector.toDebugMap(rootScope),
    'hierarchy': buildHierarchyTree(rootScope),
    'scopeStats': {
      'totalScopes': allScopes.length,
      'activeScopes': allScopes.where((s) => !s.isDisposed).length,
      'disposedScopes': allScopes.where((s) => s.isDisposed).length,
    },
  };
}