current static method

BenchmarkRunMode current()

The mode this process is actually running in right now.

Implementation

static BenchmarkRunMode current() {
  if (kDebugMode) {
    return BenchmarkRunMode.debug;
  }
  if (kProfileMode) {
    return BenchmarkRunMode.profile;
  }
  return BenchmarkRunMode.release;
}