setSamplingInterval method

Future<void> setSamplingInterval(
  1. int interval
)

Changes CPU profiler sampling interval. Must be called before CPU profiles recording started. interval New sampling interval in microseconds.

Implementation

Future<void> setSamplingInterval(int interval) async {
  await _client.send('Profiler.setSamplingInterval', {'interval': interval});
}