Performance Statistics Callback
interface PerformanceStatisticsCallback
Use this callback to observe the collected statistics. The callback is invoked at regular intervals determined by the sampling duration specified in the `PerformanceStatisticsOptions`. The callback is invoked from the main thread.