startPerformanceStatisticsCollection method

  1. @experimental
void startPerformanceStatisticsCollection(
  1. PerformanceStatisticsOptions options,
  2. PerformanceStatisticsListener listener
)

Starts collecting CPU/GPU render performance statistics with the given options, delivering each sampled snapshot to listener. Calling this while collection is already active replaces the previous listener; call stopPerformanceStatisticsCollection before restarting.

Implementation

@experimental
void startPerformanceStatisticsCollection(
  PerformanceStatisticsOptions options,
  PerformanceStatisticsListener listener,
) => _impl.startPerformanceStatisticsCollection(options, listener);