startPerformanceStatisticsCollection method
- PerformanceStatisticsOptions options,
- 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);