run method

  1. @override
  2. @nonVirtual
Future<Profile> run()
override

The implementation of the benchmark that will produce a Profile.

Implementation

@override
@nonVirtual
Future<Profile> run() async {
  _profile = Profile(name: name);
  do {
    await Future<void>.delayed(Duration.zero);
    body(_profile);
  } while (shouldContinue());
  return _profile;
}