isProfileMode method

bool isProfileMode()

Check if running in profile environment

Implementation

bool isProfileMode() {
  return const bool.fromEnvironment('dart.vm.profile', defaultValue: false);
}