getRecentPerformanceSamples method

Future<List<PerformanceSample>> getRecentPerformanceSamples({
  1. usize? limit,
})

Returns a list of recent performance samples, in reverse slot order. Performance samples are taken every 60 seconds and include the number of transactions and slots that occur in a given time window.

Implementation

Future<List<PerformanceSample>> getRecentPerformanceSamples({
  final usize? limit,
}) async =>
    (await getRecentPerformanceSamplesRaw(limit: limit)).result!;