startSampling method

Future<void> startSampling({
  1. int? samplingInterval,
  2. bool? suppressRandomness,
})

Start collecting native memory profile. samplingInterval Average number of bytes between samples. suppressRandomness Do not randomize intervals between samples.

Implementation

Future<void> startSampling(
    {int? samplingInterval, bool? suppressRandomness}) async {
  await _client.send('Memory.startSampling', {
    if (samplingInterval != null) 'samplingInterval': samplingInterval,
    if (suppressRandomness != null) 'suppressRandomness': suppressRandomness,
  });
}