perfExtrasReader top-level property

Map<String, Object?> Function() perfExtrasReader
getter/setter pair

Reader for the magic-side performance extras: controller notify counts keyed by controller runtime type, and route-transition timings.

Defaults to a function returning empty structures for both keys.

Hosts wire the real source by writing:

perfExtrasReader = () => {
  'controllerNotifies': MagicPerfIntegration.controllerNotifyCounts,
  'routeTransitions': MagicPerfIntegration.routeTransitions,
};

Contract: set-once-per-isolate from MagicPerfIntegration.install(). Reset to this no-op default by MagicPerfIntegration.resetForTesting(). Returns exactly {'controllerNotifies': Map<String, int>, 'routeTransitions': List<Map<String, Object?>>}.

Implementation

Map<String, Object?> Function() perfExtrasReader = () => <String, Object?>{
      'controllerNotifies': <String, int>{},
      'routeTransitions': <Map<String, Object?>>[],
    };